NotificationAction () { return NotificationAction.create( VcsBundle.messagePointer("action.NotificationAction.VcsRootProblemNotifier.text.configure"), (event, notification) -> { if (!myProject.isDisposed()) { ShowSettingsUtil.getInstance().showSettingsDialog(myProject, VcsMappingConfigurable.class); BackgroundTaskUtil.executeOnPooledThread(myProject, () -> { Collection<VcsRootError> errorsAfterPossibleFix = new VcsRootProblemNotifier(myProject).scan(); if (errorsAfterPossibleFix.isEmpty() && !notification.isExpired()) { notification.expire(); } }); } }); }