Explicitly specify base classes.  Alas, but it must be done for instanceof :(