void (@NotNull Project project, @Nullable Notification expected) { if (expected != null) { Notification actualNotification = ((TestVcsNotifier)VcsNotifier.getInstance(project)).findExpectedNotification(expected); assertNotNull("No notification was shown", actualNotification); } }