ITypeBinding binding= searchRoot.getAST().resolveWellKnownType("java.lang.Object"); IMethodBinding[] objectMethods= binding.getDeclaredMethods(); for (int i= 0; i < objectMethods.length; i++) { IMethodBinding meth= objectMethods[i]; if (meth.getName().equals(selector) && meth.getParameterTypes().length == nArgs) { return new ITypeBinding[] { binding }; } }
	public static ITypeBinding[] getQualifierGuess(ASTNode searchRoot, final String selector, List arguments, final IBinding context) {		final int nArgs= arguments.size();		final ArrayList result= new ArrayList();		visitAllBindings(searchRoot, new TypeBindingVisitor() {			private HashSet fVisitedBindings= new HashSet(100);			public boolean visit(ITypeBinding node) {				node= Bindings.normalizeTypeBinding(node);				if (node == null) {					return true;				}								if (!fVisitedBindings.add(node.getKey())) {					return true;				}				if (node.isGenericType()) {					return true; // only look at  parametrized types				}				if (context != null && !isUseableTypeInContext(node, context, false)) {					return true;				}								IMethodBinding[] methods= node.getDeclaredMethods();				for (int i= 0; i < methods.length; i++) {					IMethodBinding meth= methods[i];					if (meth.getName().equals(selector) && meth.getParameterTypes().length == nArgs) {						result.add(node);					}				}				return true;			}		});		return (ITypeBinding[]) result.toArray(new ITypeBinding[result.size()]);	}