protected void checkBugInstance(BugInstance bugInstance){
  for (Iterator<BugAnnotation> i=bugInstance.annotationIterator(); i.hasNext(); ) {
    BugAnnotation bugAnnotation=i.next();
    if (bugAnnotation instanceof PackageMemberAnnotation) {
      PackageMemberAnnotation pkgMember=(PackageMemberAnnotation)bugAnnotation;
      if (pkgMember.getSourceLines() == null) {
        throw new IllegalStateException("Package member " + pkgMember + " reported without source lines!");
      }
    }
  }
}

protected void checkBugInstance ( BugInstance bugInstance ) { for ( Iterator < BugAnnotation > i = bugInstance . annotationIterator ( ) ; i . hasNext ( ) ; ) { BugAnnotation bugAnnotation = i . next ( ) ; if ( bugAnnotation instanceof PackageMemberAnnotation ) { PackageMemberAnnotation pkgMember = ( PackageMemberAnnotation ) bugAnnotation ; if ( pkgMember . getSourceLines ( ) == null ) { throw new IllegalStateException ( "Package member " + pkgMember + " reported without source lines!" ) ; } } } }
for debugging : check a buginstance to make sure it is valid .
