if (method.isStatic()) return new StaticMethod(className, methodName, methodSig, accessFlags); else return new InstanceMethod(className, methodName, methodSig, accessFlags);
boolean isStatic = method.isStatic(); XMethod m; if (isStatic) m = new StaticMethod(className, methodName, methodSig, accessFlags); else m = new InstanceMethod(className, methodName, methodSig, accessFlags);  XMethod m2 = xFactory.intern(m); assert m2.getAccessFlags() == m.getAccessFlags(); return m2;
	public static XMethod createXMethod(JavaClass javaClass, Method method) {		String className = javaClass.getClassName();		String methodName = method.getName();		String methodSig = method.getSignature();		int accessFlags = method.getAccessFlags();		if (method.isStatic())			return new StaticMethod(className, methodName, methodSig, accessFlags);		else			return new InstanceMethod(className, methodName, methodSig, accessFlags);	}