private static IPackageFragment getDestinationAsPackageFragment(Object dest) throws JavaModelException {
public static IPackageFragment getDestinationAsPackageFragment(Object dest) throws JavaModelException {
	private static IPackageFragment getDestinationAsPackageFragment(Object dest) throws JavaModelException {		if (dest instanceof IPackageFragment)			return (IPackageFragment)dest;				if (dest instanceof IJavaProject)			return getDestinationAsPackageFragment(getDestinationAsPackageFragmentRoot((IJavaProject)dest));					if (dest instanceof IPackageFragmentRoot)			return ((IPackageFragmentRoot)dest).getPackageFragment(DEFAULT_PACKAGE);				if (dest instanceof ICompilationUnit && ((ICompilationUnit)dest).getParent() instanceof IPackageFragment)			return (IPackageFragment)((ICompilationUnit)dest).getParent();					if (dest instanceof IFile && (ReorgUtils.getJavaParent((IFile)dest) instanceof IPackageFragment))			return (IPackageFragment)ReorgUtils.getJavaParent((IFile)dest);					return null;	}	