private static void setupEditor(@NotNull EditorEx editor) {
    editor.getGutterComponentEx().setPaintBackground(false);
    editor.getScrollPane().setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    editor.getScrollPane().setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);

    EditorSettings settings = editor.getSettings();
    settings.setLineNumbersShown(true);
    settings.setUseSoftWraps(false);
  }
private static void setupEditor(@NotNull EditorEx editor)