if (enclosingMethod == null) {
// don't see a reason why!?
return;
}
enclosingMethod.accept(new TreeScanner<Void, Void>() {
private boolean checkStopped;
@Override
public Void visitClass(ClassTree arg0, Void arg1) {
// stop the checks if a new type is encountered