NodeList<Directive> directives = node.getDirectives();
int count = directives.size();
if (count > 0) {
HashMap<PrefixElement, ArrayList<ImportDirective>> prefixToDirectivesMap = new HashMap<PrefixElement, ArrayList<ImportDirective>>();
for (int i = 0; i < count; i++) {
Directive directive = directives.get(i);
if (directive instanceof ImportDirective) {
ImportDirective importDirective = (ImportDirective) directive;
SimpleIdentifier prefix = importDirective.getPrefix();
if (prefix != null) {
Element element = prefix.getStaticElement();