public static void invalidateCaches(@NotNull String diagnosticMessage,
                                      @NotNull Throwable errorCause) {
    implOrFail().scheduleRebuild(diagnosticMessage, errorCause);
  }
public static void invalidateCaches(@NotNull String diagnosticMessage,
                                      @NotNull Throwable errorCause)