void (@NotNull CaretEvent e) { if (e.getOldPosition().line == e.getNewPosition().line) { return; } Document document = e.getEditor().getDocument(); if (getFileDocumentManager().getFile(document) != null) { myCurrentCommandHasMoves = true; } }