if (binding != null && astRoot.findDeclaringNode(binding) == null) {
if (binding != null && binding.isFromSource() && astRoot.findDeclaringNode(binding) == null) {
	public static ICompilationUnit findCompilationUnitForBinding(ICompilationUnit cu, CompilationUnit astRoot, ITypeBinding binding) throws JavaModelException {		if (binding != null && astRoot.findDeclaringNode(binding) == null) {			ICompilationUnit targetCU= Binding2JavaModel.findCompilationUnit(binding, cu.getJavaProject());			if (targetCU != null) {				return JavaModelUtil.toWorkingCopy(targetCU);			}			return null;		}		return cu;	}	