getAncestorOfClass like method on Android for views
<p>Is there on Android a method like getAncestorOfClass of SwingUtilities to use on Views?</p>

<p>Something like:</p>

<pre><code>View parent = AndroidUtilities.getParentOfClass(childView, DesiredClass.class);
</code></pre>
