void (@NotNull Editor editor, @Nullable Caret caret, DataContext dataContext) { CommandProcessor processor = CommandProcessor.getInstance(); processor.executeCommand(CommonDataKeys.PROJECT.getData(dataContext), () -> editor.getSelectionModel().setSelection(0, editor.getDocument().getTextLength()), IdeBundle.message("command.select.all"), null); }