Scope findScopeOfLevel(DartScope level) { return _thisAndParents .firstWhere((scope) => scope.scope.isSuperScope(level)); }