void (@NotNull PsiElement element, @NotNull PsiSubstitutor substitutor) { if (element instanceof PsiMethod) { final PsiMethod method = (PsiMethod)element; addMethod(method, substitutor, isInStaticScope() && !method.hasModifierProperty(PsiModifier.STATIC)); } }