for(Map.Entry<String, String> Entry: ServiceXmlParserFactory.getInstance(project, ParameterServiceParser.class).getParameterMap().entrySet()) {
// user input here; secure nullable values
String key = Entry.getKey();
if(key != null) {
this.containerParameterMap.put(key, new ContainerParameter(key, Entry.getValue()));
}
}
}
if(this.sources.contains(Source.INDEX)) {
SymfonyProcessors.CollectProjectUniqueKeysStrong projectUniqueKeysStrong = new SymfonyProcessors.CollectProjectUniqueKeysStrong(project, ContainerParameterStubIndex.KEY, this.containerParameterMap.keySet());
FileBasedIndexImpl.getInstance().processAllKeys(ContainerParameterStubIndex.KEY, projectUniqueKeysStrong, project);
for(String parameterName: projectUniqueKeysStrong.getResult()) {
// just for secure
if(parameterName == null) {
continue;
}
// indexes is weak stuff, dont overwrite compiled ones
if(!this.containerParameterMap.containsKey(parameterName)) {
List<String> parameterValues = FileBasedIndexImpl.getInstance().getValues(ContainerParameterStubIndex.KEY, parameterName, getSearchScope(project));
this.containerParameterMap.put(parameterName, new ContainerParameter(parameterName, parameterValues, true));
}
}
}