@Override public VariableDescriptor getLocalVariable(@NotNull Name name) { checkMayRead(); // Meaningful lookup goes here for (JetScope imported : getImports()) { VariableDescriptor importedDescriptor = imported.getLocalVariable(name); if (importedDescriptor != null) { return importedDescriptor; } } return null; }
@Override public VariableDescriptor getLocalVariable(@NotNull Name name) { return substitute(workerScope.getLocalVariable(name)); }