boolean (@NotNull PsiScopeProcessor processor, @NotNull ResolveState state, PsiElement lastParent, @NotNull PsiElement place) { if (!ResolveUtil.shouldProcessClasses(processor.getHint(ElementClassHint.KEY))) return true; for (PsiTypeParameter parameter : myMethod.getTypeParameters()) { if (!ResolveUtil.processElement(processor, parameter, state)) return false; } PsiClass containingClass = myMethod.getContainingClass(); if (containingClass != null) { PsiTypeParameter[] parameters = containingClass.getTypeParameters(); for (PsiTypeParameter parameter : parameters) { if (!ResolveUtil.processElement(processor, parameter, state)) return false; } } return myFile.processDeclarations(processor, state, lastParent, place); }