void (@NotNull String groupId, @NotNull @NlsContexts.NotificationTitle String title, @NotNull @NlsContexts.NotificationContent String message, AnAction... actions) { Notification notification = new Notification(groupId, title, message, NotificationType.ERROR); notification.addActions(List.of(actions)); Notifications.Bus.notify(notification, myProject); }