@Override
  public void writeExtendsList(StringBuilder text, PsiClass typeDefinition) {
    final PsiClassType[] extendsClassesTypes = typeDefinition.getExtendsListTypes();

    PsiClassType type = null;
    if (extendsClassesTypes.length > 0) {
      type = extendsClassesTypes[0];
    }
    else {
      if (typeDefinition instanceof GrTypeDefinition) {
        if (GenerationSettings.implementGroovyObjectAlways || containsMethodsOf((GrTypeDefinition)typeDefinition, GROOVY_OBJECT)) {
          type = TypesUtil.createType(GROOVY_OBJECT_SUPPORT, typeDefinition);
        }
      }
    }

    if (type != null) {
      text.append("extends ");
      TypeWriter.writeType(text, type, typeDefinition, classNameProvider);
      text.append(' ');
    }
  }
@Override
  public void writeExtendsList(StringBuilder text, PsiClass typeDefinition)