void (@NotNull AnActionEvent e) { BoundedRangeModel verticalScrollModel = myTerminalWidget.getTerminalPanel().getVerticalScrollModel(); e.getPresentation().setEnabled(verticalScrollModel.getValue() != 0); }