public static @NotNull @NlsSafe String getTemplateBaseName(TemplateResource resource) {
    return StringUtil.trimEnd(StringUtil.trimEnd(resource.getFileName(), EQUALS_SUFFIX), HASH_CODE_SUFFIX).trim();
  }
public static @NotNull @NlsSafe String getTemplateBaseName(TemplateResource resource)