if(adapter instanceof IPackageFragment){
return new WorkItem((IPackageFragment) element);
}
}
return null;
<BUG>}
public static IResource getResource(Object element) {
if(element instanceof IResource) {
return (IResource) element;
}</BUG>
if(element instanceof IJavaElement) {

if(adapter instanceof IPackageFragment){
return new WorkItem((IPackageFragment) element);
}
}
return null;
}
@javax.annotation.CheckForNull
public static IResource getResource(Object element) {
if(element instanceof IJavaElement) {
