face in java.lang.annotation" class="external-link">Annotation</a>&gt;</span>&nbsp;<span class="return-type">T</span>&nbsp;<span class="element-name">getAnnotation</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html" title="class or interface in java.lang" class="external-link">Class</a>&lt;T&gt;&nbsp;annotationType)</span></div>
<div class="block"><p>
 Get program element annotation of a certain annotation type.

 The behavior of t