IStubElementType () { if (!(myElementType instanceof IStubElementType)) { throw new ClassCastException("Not a stub type: " + myElementType + " in " + getClass()); } return (IStubElementType<?, ?>)myElementType; }