void (@NotNull LargeFileEditor largeFileEditor, @NotNull Editor editor, @Nullable Caret caret, DataContext dataContext) { if (isStart) { largeFileEditor.getEditorModel().setCaretToFileStartAndShow(); } else { largeFileEditor.getEditorModel().setCaretToFileEndAndShow(); } IdeDocumentHistory docHistory = IdeDocumentHistory.getInstance(largeFileEditor.getProject()); if (docHistory != null) { docHistory.includeCurrentCommandAsNavigation(); docHistory.setCurrentCommandHasMoves(); } }