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