void (DataContext context, MavenProject mavenProject, MavenProject aggregator) { String aggregatorDescription = " (" + aggregator.getMavenId().getDisplayString() + ')'; Notification notification = new Notification(MavenUtil.MAVEN_NOTIFICATION_GROUP, MavenProjectBundle.message("maven.module.remove.failed"), MavenProjectBundle .message("maven.module.remove.failed.explanation", mavenProject.getDisplayName(), aggregatorDescription), NotificationType.ERROR ); notification.setImportant(true); notification.notify(getProject(context)); }