if(this.toggleTemplate.isSelected()) {
VirtualFile baseDir = this.project.getBaseDir();
for (Map.Entry<String, VirtualFile> entry : TwigHelper.getTemplateFilesByName(this.project).entrySet()) {
if(entry.getKey().toLowerCase().contains(filter)) {
items.add(new TemplateLookupElement(entry.getKey(), entry.getValue(), baseDir));
}
}
}
return items;