}
final ImportDeclaration lastRemoved = removedImports.get(removedImports.size() - 1);
for (final String packageName : newImports) {
compilationUnit.insertChildAfter(
lastRemoved,
new ImportDeclaration(PackageReference.parse(packageName)),
CompilationUnit.IMPORT_ROLE
);
}