List<TemplateContextType> () { List<TemplateContextType> result = new ArrayList<>(); for (TemplateContextType type : TemplateManagerImpl.getAllContextTypes()) { if (myContext.isEnabled(type)) { result.add(type); } } return result; }