if (!myElement.isValid()) {
return Collections.emptyList();
}
GlobalDefinitionCollector collector = new GlobalDefinitionCollector(myElement.getContainingFile());
final Map<String, HashSet<GlobalDefinitionCollector.AssignmentProperty>> assignments = collector.getAssignments();
final Collection<StructureViewTreeElement> children = new HashSet<StructureViewTreeElement>(assignments.size());
for (String key : assignments.keySet()) {
final HashSet<GlobalDefinitionCollector.AssignmentProperty> assignmentProperties = assignments.get(key);
for (GlobalDefinitionCollector.AssignmentProperty assignmentProperty : assignmentProperties) {