void (@NotNull AnActionEvent e) { Runnable hideTreeRunnable = myHideRunnable == null ? null : () -> { myTreePopupIsShown = false; myHideRunnable.run(); }; showTreePopup(hideTreeRunnable); myTreePopupIsShown = true; hideTextPopup(); }