return findTypeInCompilationUnit(cu, getTypeQualifiedName((IType)member));
return JavaModelUtil.findTypeInCompilationUnit(cu, JavaModelUtil.getTypeQualifiedName((IType)member));
	public static IMember findInCompilationUnit(ICompilationUnit cu, IMember member) throws JavaModelException {		if (member.getElementType() == IJavaElement.TYPE) {			return findTypeInCompilationUnit(cu, getTypeQualifiedName((IType)member));		} else {			IType declaringType= findTypeInCompilationUnit(cu, getTypeQualifiedName(member.getDeclaringType()));			if (declaringType != null) {				IMember result= null;				switch (member.getElementType()) {				case IJavaElement.FIELD:					result= declaringType.getField(member.getElementName());					break;				case IJavaElement.METHOD:					IMethod meth= (IMethod) member;					// XXX: Begin patch ---------------------					boolean isConstructor;					if (meth.exists())						isConstructor= meth.isConstructor();					else						isConstructor= declaringType.getElementName().equals(meth.getElementName());					// XXX: End patch -----------------------					result= findMethod(meth.getElementName(), meth.getParameterTypes(), isConstructor, declaringType);					break;				case IJavaElement.INITIALIZER:					result= declaringType.getInitializer(1);					break;									}				if (result != null && result.exists()) {					return result;				}			}		}		return null;	}