final DartComponentName importPrefixComponent = importOrExportStatement instanceof DartImportStatement
? ((DartImportStatement)importOrExportStatement).getImportPrefix()
: null;
final String importPrefix = importPrefixComponent != null ? importPrefixComponent.getName() : null;
final Kind kind = importOrExportStatement instanceof DartImportStatement ? Kind.Import : Kind.Export;
result.addImportInfo(new DartImportOrExportInfo(kind, uri, importPrefix, showComponentNames, hideComponentNames));
result.addComponentInfo(importPrefix,
new DartComponentInfo(importOrExportStatement.getContainingFile().getName(), DartComponentType.LABEL, null));
}