if (updatedUnit != null && typeProvider != null) {
CompilationUnitElement element = updatedUnit.getElement();
if (element != null) {
LibraryElement library = element.getLibrary();
if (library != null) {
IncrementalResolver resolver = new IncrementalResolver(
library,
cache.getSource(),
typeProvider,
errorListener);
resolver.resolve(parser.getUpdatedNode());
}
}
}
}