Whether the element has an annotation of the form @isTest.
@isTest
@override bool get hasIsTest => metadata.any((ElementAnnotation m) => m.isIsTest);