boolean (@NotNull PsiScopeProcessor processor, @NotNull ResolveState state, PsiElement lastParent, @NotNull PsiElement place) { ElementClassHint classHint = processor.getHint(ElementClassHint.KEY); if (classHint == null || classHint.shouldProcess(ElementClassHint.DeclarationKind.CLASS)) { NameHint nameHint = processor.getHint(NameHint.KEY); String name = nameHint != null ? nameHint.getName(state) : null; //"pseudo-imports" if (name != null) { PsiClass imported = myPseudoImports.get(name); if (imported != null) { if (!processor.execute(imported, state)) return false; } } else { for (PsiClass aClass : myPseudoImports.values()) { if (!processor.execute(aClass, state)) return false; } } if (getContext() == null) { return JavaResolveUtil.processImplicitlyImportedPackages(processor, state, place, getManager()); } } if (myInjectedDeclarations != null) { return myInjectedDeclarations.process(processor, state, lastParent, place); } return true; }