void (@NotNull AnActionEvent e) { final JComponent contextComponent = removeButton.getContextComponent(); if (contextComponent instanceof JTable && ((JTable)contextComponent).isEditing()) { e.getPresentation().setEnabled(false); return; } final SpeedSearchSupply supply = SpeedSearchSupply.getSupply(contextComponent); if (supply != null && supply.isPopupActive()) { e.getPresentation().setEnabled(false); return; } removeButton.update(e); }