public IPackageService buildPackageService(
IPackageFragment packageFragment
) {
IModelService projectModelService =
buildModelService(packageFragment);
IElementService elementSrv =
projectModelService.getElementService(
packageFragment.getElementName()
);
if(elementSrv instanceof IPackageService) {
return (IPackageService)elementSrv;