boolean (@NotNull PsiElement element, @NotNull ResolveState state) { if (!(element instanceof PsiMethod method)) return true; if (!myIgnoreCondition.value(method)) return true; PsiSubstitutor substitutor = state.get(PsiSubstitutor.KEY); if (substitutor == null) substitutor = PsiSubstitutor.EMPTY; myContext.addMethod(createDelegationMethod(method, substitutor)); return true; }