@Override
  public void writeEnumConstant(StringBuilder text, GrEnumConstant enumConstant) {
    text.append(enumConstant.getName());
    PsiMethod constructor = enumConstant.resolveMethod();
    if (constructor != null) {
      text.append('(');
      writeStubConstructorInvocation(text, constructor, PsiSubstitutor.EMPTY, enumConstant);
      text.append(')');
    }

    GrEnumConstantInitializer initializer = enumConstant.getInitializingClass();
    if (initializer != null) {
      text.append("{\n");
      for (PsiMethod method : initializer.getMethods()) {
        writeMethod(text, method);
      }
      text.append('}');
    }
  }
@Override
  public void writeEnumConstant(StringBuilder text, GrEnumConstant enumConstant)