boolean (@NotNull ResolveState state, @NotNull PsiElement place, @NotNull PsiScopeProcessor processor) { for (PsiImportStatement statement : getImportStatements()) { if (statement.isOnDemand()) { PsiElement resolved = statement.resolve(); if (resolved != null) { processor.handleEvent(JavaScopeProcessorEvent.SET_CURRENT_FILE_CONTEXT, statement); if (!processOnDemandTarget(resolved, state, place, processor)) return false; } } } return true; }