boolean (PsiElement element) { final PsiClassInitializer initializer = PsiTreeUtil.getParentOfType(element, PsiClassInitializer.class); return initializer != null && initializer.hasModifierProperty(PsiModifier.STATIC); }