docs: protected void generateServiceDescriptor(String className, GeneratedFile generatedFile) throws IOException {
          CharSequence contents = generatedFile.getTextContent();
          if (contents != null) {
              String[] entries = contents.toString().split("\\n");
              if (!Arrays.asList(entries).contains(className)) {
                  try (BufferedWriter w = new BufferedWriter(generatedFile.openWriter())) {
                      w.newLine();
                      w.write(className);
                  }
              }
          } else {
              try (BufferedWriter w = new BufferedWriter(generatedFile.openWriter())) {
                  w.write(className);
              }
          }
      }