public static @NotNull EditorNotifications getInstance(@NotNull Project project) {
    return project.isDefault() ? NULL_IMPL : project.getService(EditorNotifications.class);
  }
public static @NotNull EditorNotifications getInstance(@NotNull Project project)