List<FindDefinitionResultEntry> results = new ArrayList<>();
for (INamedElement namedElement : defElements) {
final DefUnit defUnit = namedElement.resolveDefUnit();
Path compilationUnitPath = null;
SourceRange sourceRange = null;
if(defUnit != null) { // This can happen with intrinsic elements
compilationUnitPath = defUnit.getModuleNode().compilationUnitPath;
sourceRange = defUnit.defname.getSourceRangeOrNull();
if(defUnit.getArcheType() == EArcheType.Module && sourceRange == null) {
sourceRange = new SourceRange(0, 0);
}
}
results.add(new FindDefinitionResultEntry(
namedElement.getExtendedName(),