public static @NotNull MessageInfo error(Project project, @DialogMessage String message, @DialogTitle String title) {
    return new MessageInfo(project, message, title);
  }
public static @NotNull MessageInfo error(Project project, @DialogMessage String message, @DialogTitle String title)