public static String getResourceBundleName(IJavaProject javaProject, ITypeBinding accessorClassBinding) throws JavaModelException {
public static String getResourceBundleName(ITypeBinding accessorClassBinding) throws JavaModelException {
	public static String getResourceBundleName(IJavaProject javaProject, ITypeBinding accessorClassBinding) throws JavaModelException {		IJavaElement je= accessorClassBinding.getJavaElement();		if (je == null)			return null;				IOpenable openable= je.getOpenable();		IJavaElement container= null;		if (openable instanceof ICompilationUnit)			container= (ICompilationUnit)openable;		else if (openable instanceof IClassFile)			container= (IClassFile)openable;		else			Assert.isLegal(false);				CompilationUnit astRoot= JavaPlugin.getDefault().getASTProvider().getAST(container, ASTProvider.WAIT_YES, null);				IVariableBinding[] fields= accessorClassBinding.getDeclaredFields();		for (int i= 0; i < fields.length; i++) {			if (isBundleField(fields[i])) {				VariableDeclarationFragment node= (VariableDeclarationFragment) astRoot.findDeclaringNode(fields[i].getKey());				if (node != null) {					Expression initializer= node.getInitializer();					if (initializer instanceof StringLiteral) {						return ((StringLiteral) initializer).getLiteralValue();					} else if (initializer instanceof MethodInvocation) {						MethodInvocation methInvocation= (MethodInvocation) initializer;						Expression exp= methInvocation.getExpression();						if ((exp != null) && (exp instanceof TypeLiteral)) {							SimpleType simple= (SimpleType) ((TypeLiteral) exp).getType();							ITypeBinding typeBinding= simple.resolveBinding();							if (typeBinding != null) {								return Bindings.getRawQualifiedName(typeBinding);							}						}					}				}			}		}		return null;	}