title: Check if object is from certain package
body: <p>Is there a way to check if an object's class is from a certain package?</p>
  
  <p>Like, when I check if an object is of a certain class using <code>instanceof</code>,
  I want something similar to check for a package in Java.</p>