void (@NotNull AnActionEvent e, boolean state) { if (e.getDataContext() != DataContext.EMPTY_CONTEXT) { // Avoid fake events properties.setValue(PREVIEW_PROPERTY_KEY, state); cancel(popupRef.get(), actionHandler, CLOSE_REASON_PREVIEW); WindowStateService.getInstance().putSize(DIMENSION_SERVICE_KEY, null); showElementUsages(parameters, actionHandler); } }