public static boolean canRunInspections(@NotNull Project project, boolean online, @NotNull Runnable rerunAction) {
    if (InspectionExtensionsFactory.EP_NAME.getExtensionList().isEmpty()) {
      return true;
    }
    for (InspectionExtensionsFactory factory : InspectionExtensionsFactory.EP_NAME.getExtensionList()) {
      if (factory.isProjectConfiguredToRunInspections(project, online, rerunAction)) {
        return true;
      }
    }
    return false;
  }
public static boolean canRunInspections(@NotNull Project project, boolean online, @NotNull Runnable rerunAction)