private static Document createDocument(@NotNull String initialText) {
      return EditorFactory.getInstance().createDocument(initialText);
    }
private static Document createDocument(@NotNull String initialText)