if (isComposerContainer(containerPath)) {
String name = containerPath.segment(1);
if (containerSuggestion != null) {
PackageManager manager = ModelAccess.getInstance().getPackageManager();
if (manager.getPackage(name) == null) {
return;
}
manager.setPackage(
name,
containerSuggestion.getBuildpathEntries(),
containerSuggestion.getKind() == IBuildpathContainer.K_SYSTEM);
} else {
ModelAccess.getInstance().getPackageManager().removePackage(name);