public static ASTNode getASTNode(IJavaElement elem, IProgressMonitor monitor) {
final IMember mem = getIMember(elem);
final ICompilationUnit icu = mem.getCompilationUnit();
if (icu == null)
throw new BinaryElementEncounteredException(Messages.ASTNodeProcessor_SourceNotPresent,
mem);
final ASTNode root = Util.getCompilationUnit(icu, monitor);
return root;
}