docs: static void checkCompilePolicy(@Nullable String compilePolicy) {
      if (compilePolicy == null) {
        throw new InvalidCommandLineOptionException(
            "The default compilation policy (by-todo) is not supported by Error Prone,"
                + " pass -XDcompilePolicy=byfile instead");
      }
      switch (compilePolicy) {
        case "byfile":
        case "simple":
          break;
        default:
          throw new InvalidCommandLineOptionException(
              String.format(
                  "-XDcompilePolicy=%s is not supported by Error Prone,"
                      + " pass -XDcompilePolicy=byfile instead",
                  compilePolicy));
      }
    }