boolean (@NotNull PsiMethod method) { if (method instanceof GrTraitMethod) return false; final PsiElement navigationElement = method.getNavigationElement(); return method.isPhysical() || navigationElement.isPhysical() && !(navigationElement instanceof PsiClass); }