boolean (final PsiElement place, final PsiScopeProcessor processor, @NotNull final ResolveState state, @NotNull final PsiClass categoryClass) { for (final PsiScopeProcessor each : MultiProcessor.allProcessors(processor)) { final PsiScopeProcessor delegate = new DelegatingScopeProcessor(each) { @Override public boolean execute(@NotNull PsiElement element, @NotNull ResolveState delegateState) { if (element instanceof PsiMethod method && isCategoryMethod((PsiMethod)element, null, null, null)) { return each.execute(GrGdkMethodImpl.createGdkMethod(method, false, generateOriginInfo(method)), delegateState); } return true; } }; if (!categoryClass.processDeclarations(delegate, state, null, place)) return false; } return true; }