@Override
    public void onInactivity() {
      ApplicationManager.getApplication().invokeLater(
        () -> FileDocumentManager.getInstance().saveDocumentAsIs(getEditor().getDocument()));
    }
@Override
    public void onInactivity()