void (@NotNull final AnActionEvent e, final boolean state) { if (state) { showPopup(e.getRequiredData(CommonDataKeys.PROJECT), e.getInputEvent().getComponent()); } else { if (myFilterPopup != null && !myFilterPopup.isDisposed()) { myFilterPopup.cancel(); } } }