}
} else if (element instanceof ICompilationUnit) { IType type= getTypeForCU((ICompilationUnit)element); return type != null && type.equals(getViewer().getInput()); }
	protected boolean isValidElement(Object element) {		if (element instanceof IMember)			return super.isValidElement(((IMember)element).getDeclaringType());		else if (element instanceof IImportDeclaration)			return isValidElement(((IJavaElement)element).getParent());		else if (element instanceof IImportContainer) {			Object input= getViewer().getInput();			if (input instanceof IJavaElement) {				ICompilationUnit cu= (ICompilationUnit)((IJavaElement)input).getAncestor(IJavaElement.COMPILATION_UNIT);				if (cu != null) {					ICompilationUnit importContainerCu= (ICompilationUnit)((IJavaElement)element).getAncestor(IJavaElement.COMPILATION_UNIT);					return cu.equals(importContainerCu);				} else {					IClassFile cf= (IClassFile)((IJavaElement)input).getAncestor(IJavaElement.CLASS_FILE);					IClassFile importContainerCf= (IClassFile)((IJavaElement)element).getAncestor(IJavaElement.CLASS_FILE);					return cf != null && cf.equals(importContainerCf);				}			}		}		return false;	}