implement Class.getEnclosingClass