void (@NotNull AnActionEvent e) { boolean visible = myChangesProvider != null && myFile != null; e.getPresentation().setVisible(visible); e.getPresentation().setEnabled(visible && myRevisionNumber != null); }