void (boolean showDialog, @Nullable ModalityState modalityState) { if (showDialog) { showAndGet(); } else { doInstallPlugins(__ -> true, modalityState != null ? modalityState : ModalityState.nonModal()); } }