boolean (@NotNull ResolveState state, @NotNull PsiElement place, @NotNull PsiScopeProcessor processor) { ElementClassHint classHint = processor.getHint(ElementClassHint.KEY); boolean shouldProcessClasses = classHint == null || classHint.shouldProcess(ElementClassHint.DeclarationKind.CLASS); if (shouldProcessClasses && !processCurrentPackage(state, place, processor)) return false; if (!processOnDemandStaticImports(state, new StaticImportFilteringProcessor(getEnumeratedDeclarations(), processor))) { return false; } if (shouldProcessClasses && !processOnDemandTypeImports(state, place, processor)) return false; return !shouldProcessClasses || processImplicitImports(state, place, processor); }