Optional<JBPopup> (@NotNull AnActionEvent e) { return Optional.ofNullable(e.getProject()).map(it -> it.getUserData(SearchEverywhereAction.SEARCH_EVERYWHERE_POPUP)) .map(it -> it.get(ClientId.getCurrent())); }