private static @Nullable String suggestVariableNameFromConstant(@NotNull PsiExpression expr, @Nullable VariableKind kind) {
    if (kind == null || kind == VariableKind.LOCAL_VARIABLE) {
      return null;
    }
    PsiExpression expression = PsiUtil.skipParenthesizedExprDown(expr);
    if (expression instanceof PsiReferenceExpression referenceExpression &&
        referenceExpression.resolve() instanceof PsiEnumConstant enumConstant) {
      return normalizeTypeName(getTypeName(enumConstant.getType()));
    }
    return null;
  }
private static @Nullable String suggestVariableNameFromConstant(@NotNull PsiExpression expr, @Nullable VariableKind kind)