if (element == null) return null;
	IType getType(IJavaElement element) {		IType type= null;		if (element.getElementType() == IJavaElement.TYPE)			type= (IType)element;		else if (element instanceof IMember)			type= ((IMember)element).getDeclaringType();		if (type != null) {			ICompilationUnit cu= type.getCompilationUnit();			if (cu == null)				return type;							IType wcType= (IType)getWorkingCopy(type);			if (wcType != null)				return wcType;			else				return type;		}		return null;	}