void (@Nullable AbstractPopup popup, @Nullable ShowUsagesActionHandler actionHandler, @Nullable String closeReason) { if (popup != null) { // TODO: think about better API for providing information about closing reason // It is important for RDCT - in some cases we have to terminate protocol session, but in some we can not do it if (actionHandler != null) { actionHandler.beforeClose(closeReason); } popup.cancel(); } }