String resourceName = getResourceNameHelper(fullyQualifiedResource);
String resourceName = getResourceNamePartHelper(fullyQualifiedResource);
    private IPackageFragment findPackageFragmentOfResource(IJavaProject javaProject, String fullyQualifiedResource) throws JavaModelException {        String packageString = getPackagePartHelper(fullyQualifiedResource);        String resourceName = getResourceNameHelper(fullyQualifiedResource);        IPackageFragmentRoot[] allRoots = javaProject.getAllPackageFragmentRoots();        for (int i = 0; i < allRoots.length; i++) {            IPackageFragmentRoot root = allRoots[i];            if (root.getKind() == IPackageFragmentRoot.K_SOURCE) {                IPackageFragment packageFragment = root.getPackageFragment(packageString);                if (packageFragment.exists()) {                    Object[] resources = packageFragment.getNonJavaResources();                    for (int j = 0; j < resources.length; j++) {                        Object object = resources[j];                        if (object instanceof IFile) {                            IFile file = (IFile) object;                            if (file.getName().equals(resourceName)) {                                 return packageFragment;                            }                        }                    }                }            }        }        return null;    }