/** * @param binding must be correspond to a type, method or field declaration. * @return the ast node the corresponds to the declaration of the given binding. Return null if * none is found. */ public ASTNode getASTNodeForBinding(final IBinding binding) { final CompilationUnit astUnit = getCompilationUnitForBinding(binding); if (astUnit == null) return null; return astUnit.findDeclaringNode(binding.getKey()); }