code: private static boolean canSkipEscaping(
        ImmutableList<SoyJavaPrintDirective> directives, @Nullable ContentKind kind) {
      if (kind == null) {
        return false;
      }
      for (SoyJavaPrintDirective directive : directives) {
        if (!(directive instanceof ShortCircuitable)
            || !((ShortCircuitable) directive).isNoopForKind(kind)) {
          return false;
        }
      }
      return true;
    }
docs: Identifies some cases where the combination of directives and content kind mean we can skip
  applying the escapers. This is an opportunistic optimization, it is possible that we will fail
  to skip escaping in some cases where we could and that is OK. However, there should never be a
  case where we skip escaping and but the escapers would actually modify the input.