List<TemplateImpl> (@NotNull String templateKey) { TemplateSettings settings = TemplateSettings.getInstance(); List<TemplateImpl> candidates = new ArrayList<>(); for (TemplateImpl template : settings.getTemplates(templateKey)) { if (!template.isDeactivated()) { candidates.add(template); } } return candidates; }