@Override @SuppressWarnings("unchecked") public boolean preVisit2(final ASTNode ¢){
  if ($.get() != null)   return false;
  if (!clazz.isAssignableFrom(¢.getClass()))   return true;
  $.set((N)¢);
  return false;
}

@ Override @ SuppressWarnings ( "unchecked" ) public boolean preVisit2 ( final ASTNode ¢ ) { if ( $ . get ( ) != null ) return false ; if ( ! clazz . isAssignableFrom ( ¢ . getClass ( ) ) ) return true ; $ . set ( ( N ) ¢ ) ; return false ; }
the implementation of the visitation procedure in the jdt seems to be buggy . each time we find a node which is an instance of the sought class , we return false . hence , we do not anticipate any further calls to this function after the first such node is found . however , this does not seem to be the case . so , in the case our wrapper is not null , we do not carry out any further tests .
