@Override
      public void beforeDocumentChange(@NotNull DocumentEvent e) {
        if (CommandProcessor.getInstance().getCurrentCommand() != null && !isUndoOrRedoInProgress()) {
          myDocumentChanged = true;
        }
      }
@Override
      public void beforeDocumentChange(@NotNull DocumentEvent e)