// domains on complied file
TranslationStringMap map = TranslationIndex.getInstance(project).getTranslationMap();
Set<String> domainList = map.getDomainList();
for(String domainKey : domainList) {
lookupElements.add(new TranslatorLookupElement(domainKey, domainKey));
}
SymfonyProcessors.CollectProjectUniqueKeysStrong projectUniqueKeysStrong = new SymfonyProcessors.CollectProjectUniqueKeysStrong(project, YamlTranslationStubIndex.KEY, domainList);
FileBasedIndexImpl.getInstance().processAllKeys(YamlTranslationStubIndex.KEY, projectUniqueKeysStrong, project);
// attach index domains as weak one
for(String domainKey: projectUniqueKeysStrong.getResult()) {
if(!domainList.contains(domainKey)) {
lookupElements.add(new TranslatorLookupElement(domainKey, domainKey, true));
}
}
return lookupElements;
}