private List<FileTemplate> getTemplates(String category) {
    Map<String, List<FileTemplate>> templates = changesCache.get(myScheme);
    return templates == null ? List.of(manager.getTemplates(category)) : templates.get(category);
  }
private List<FileTemplate> getTemplates(String category)