public static void sendErrorNotification(Project project, String title, String message, String ... args) {
sendNotification(project, NotificationType.ERROR, title, message, args);
}
public static void sendNotification(Project project, NotificationType type, String title, String message, String ... args) {
final NotificationListener listener = new NotificationListener() {
public void hyperlinkUpdate(@NotNull Notification notification, @NotNull HyperlinkEvent event) {
notification.expire();
}
};