public static TemplateContextType getTemplateContextType(@NotNull StructuralSearchProfile profile) {
    final Class<? extends TemplateContextType> clazz = profile.getTemplateContextTypeClass();
    return TemplateContextTypes.getByClass(clazz);
  }
public static TemplateContextType getTemplateContextType(@NotNull StructuralSearchProfile profile)