@Override
      public void editorCreated(@NotNull EditorFactoryEvent event) {
        queueUpdateEncodingFromContent(event.getEditor().getDocument());
      }
@Override
      public void editorCreated(@NotNull EditorFactoryEvent event)