@Override
      public void caretPositionChanged(@NotNull CaretEvent e) {
        if (e.getOldPosition().line == e.getNewPosition().line) {
          return;
        }

        Document document = e.getEditor().getDocument();
        if (getFileDocumentManager().getFile(document) != null) {
          currentCommandHasMoves = true;
        }
      }
@Override
      public void caretPositionChanged(@NotNull CaretEvent e)