void () { synchronized (myCreatedAnnotationBuilders) { try { for (B builder : myCreatedAnnotationBuilders) { builder.assertAnnotationCreated(); } } finally { myCreatedAnnotationBuilders.clear(); } } }