public String getResourceBundle(ITypeBinding accessorClassBinding, IPackageFragment accessorPackage) throws JavaModelException { IJavaProject javaProject = fCu.getJavaProject(); IType messageClass = javaProject.findType(accessorPackage.getElementName() + '.' + accessorClassBinding.getName()); if (messageClass != null) { ASTNode ast = ASTCreator.createAST(messageClass.getCompilationUnit(), null); ResourceBundleNameFinder resourceBundleNameFinder = new ResourceBundleNameFinder(NLSRefactoring.BUNDLE_NAME); ast.accept(resourceBundleNameFinder); String resourceBundleName = resourceBundleNameFinder.getResourceBundleName() + NLSRefactoring.PROPERTY_FILE_EXT; return resourceBundleName; }  return null;
public String getResourceBundle(NLSElement nlsElement) throws JavaModelException { ITypeBinding accessorClass = getAccessorClass(nlsElement); return getResourceBundle(accessorClass, getPackageOfAccessorClass(accessorClass));
    public String getResourceBundle(ITypeBinding accessorClassBinding, IPackageFragment accessorPackage) throws JavaModelException {        IJavaProject javaProject = fCu.getJavaProject();        IType messageClass = javaProject.findType(accessorPackage.getElementName() + '.' + accessorClassBinding.getName());         if (messageClass != null) {            ASTNode ast = ASTCreator.createAST(messageClass.getCompilationUnit(), null);            ResourceBundleNameFinder resourceBundleNameFinder = new ResourceBundleNameFinder(NLSRefactoring.BUNDLE_NAME);            ast.accept(resourceBundleNameFinder);            String resourceBundleName = resourceBundleNameFinder.getResourceBundleName() + NLSRefactoring.PROPERTY_FILE_EXT;            return resourceBundleName;                        }                return null;    }