boolean () { final Specifier<ElemType, Difference> targetsDiff = targets(); if (!targetsDiff.unchanged()) { for (ElemType elemType : Set.of(ElemType.TYPE_USE, ElemType.RECORD_COMPONENT)) { if (targetsDiff.added().contains(elemType) || targetsDiff.removed().contains(elemType) || pastClass.getAnnotationTargets().contains(elemType) ) { return true; } } } return false; }