void (@NotNull Project project, @NotNull BadGitExecutableNotification notification) { ModalityUiUtil.invokeLaterIfNeeded(ModalityState.defaultModalityState(), () -> { if (ensureSingularOfType(project, notification.getClass())) { notification.notify(project); } }); }