String (PsiVariable var) { if (myColor != null || !var.hasModifierProperty(PsiModifier.FINAL) || !var.hasModifierProperty(PsiModifier.STATIC)) return null; if (PlainDescriptor.hasInitializationHacks(var)) return null; PsiElement initializer = var instanceof PsiEnumConstant ? ((PsiEnumConstant)var).getArgumentList() : getInitializer(var); String initText = initializer == null ? null : initializer.getText(); if (StringUtil.isEmpty(initText)) return null; String prefix = var instanceof PsiEnumConstant ? "" : EQ; String suffix = var instanceof PsiEnumConstant && ((PsiEnumConstant)var).getInitializingClass() != null ? " {...}" : ""; return StringUtil.trimLog(prefix + initText + suffix, 30); }