IJavaElement[] types= workingCopy.findElements(member); if (types != null && types.length > 0) { return (IMember) types[0];
IJavaElement[] members= workingCopy.findElements(member); if (members != null && members.length > 0) { return (IMember) members[0];
	public static IMember toWorkingCopy(IMember member) {		ICompilationUnit cu= member.getCompilationUnit();		if (cu != null && !cu.isWorkingCopy()) {			ICompilationUnit workingCopy= EditorUtility.getWorkingCopy(cu);			if (workingCopy != null) {				IJavaElement[] types= workingCopy.findElements(member);				if (types != null && types.length > 0) {					return (IMember) types[0];				}			}		}		return member;	}