boolean (final PsiExpression expression) { PsiField parentField = expression.getParent() instanceof PsiField ? (PsiField)expression.getParent() : null; return parentField != null && expression == parentField.getInitializer() && parentField.hasModifierProperty(PsiModifier.FINAL) && parentField.hasModifierProperty(PsiModifier.STATIC); }