@Contract(pure = true)
    private static String escapeString(String line, Function<? super String, String> escapeFunction) {
      line = XmlStringUtil.escapeString(line);
      return escapeFunction == null ? line : escapeFunction.fun(line);
    }
@Contract(pure = true)
    private static String escapeString(String line, Function<? super String, String> escapeFunction)