boolean (PsiElement element) { if (element instanceof PsiMethod || element instanceof PsiField || element instanceof PsiClassInitializer) { if (element instanceof SyntheticElement) return false; return ((PsiModifierListOwner) element).hasModifierProperty(PsiModifier.STATIC); } return false; }