void (@NotNull AnActionEvent e) { Editor editor = findLeftEditor(); if (editor == null) return; EditorSearchSession session = EditorSearchSession.get(editor); if (session != null && session.hasMatches()) { if (session.isLast(myForward)) { myRevisionsList.moveSelection(myForward); } else if (myForward) { session.searchForward(); } else { session.searchBackward(); } } }