boolean (@NotNull PsiVariable field) { if (!field.hasModifierProperty(PsiModifier.FINAL)) return false; PsiType type = field.getType(); return (TypeConversionUtil.isPrimitiveAndNotNull(type) || type.equalsToText(CommonClassNames.JAVA_LANG_STRING)) && field.hasInitializer() && isConstantExpression(field.getInitializer()); }