hasAnnotationOf

Returns true if declaration represents the type of T.

Return

true if declaration represents the type of T, false otherwise.