}
LibraryElement libraryElement = unitElement.getLibrary();
if (libraryElement == null) {
return false;
}
CompilationUnitElement definingUnitElement = libraryElement.getDefiningCompilationUnit();
if (definingUnitElement == null) {
return false;
}
// prepare sources
Source library = definingUnitElement.getSource();
Source unit = unitElement.getSource();
// special handling for the defining library unit
if (unit.equals(library)) {
// prepare new parts
Set<Source> newParts = Sets.newHashSet();