code: public static TemplatePathInfo forTemplatePath(@NotNull String templatePath, @NotNull TemplatePathInfo @NotNull... templates) {
      if (templatePath == null || templates == null || templates.length == 0) {
        return null;
      }
      for (TemplatePathInfo template : templates) {
        if (StringUtils.equals(template.getTemplatePath(), templatePath)) {
          return template;
        }
      }
      return null;
    }
docs: Lookup a template by the given template path.
  @param templatePath Path of template
  @param templates Templates
  @return The {@link TemplatePathInfo} instance or null for unknown template paths