encapsulate retrieval of ICompilationUnit and IPackageFragment in Workspace