docs: private static String buildTemplateNameForJavadoc(
        SoyFileNode currSoyFile, TemplateMetadata template) {
  
      StringBuilder resultSb = new StringBuilder();
  
      if (template.getSourceLocation().getFilePath().equals(currSoyFile.getFilePath())
          && template.getTemplateKind() != TemplateMetadata.Kind.DELTEMPLATE) {
        resultSb.append(
            template.getTemplateName().substring(template.getTemplateName().lastIndexOf('.')));
      } else {
        switch (template.getTemplateKind()) {
          case BASIC:
          case ELEMENT:
            resultSb.append(template.getTemplateName());
            break;
          case DELTEMPLATE:
            resultSb.append(template.getDelTemplateName());
            if (!template.getDelTemplateVariant().isEmpty()) {
              resultSb.append(':');
              resultSb.append(template.getDelTemplateVariant());
            }
            break;
        }
      }
  
      if (template.getVisibility() != Visibility.PUBLIC) {
        resultSb.append(" (private)");
      }
      if (template.getTemplateKind() == TemplateMetadata.Kind.DELTEMPLATE) {
        resultSb.append(" (delegate)");
      }
  
      return resultSb.toString();
    }