docs: protected void findAnnotations(final String content, final List<FileAnnotation> warnings) throws ParsingCanceledException {
          Matcher matcher = pattern.matcher(content);
  
          while (matcher.find()) {
              Warning warning = createWarning(matcher);
              if (warning != FALSE_POSITIVE) { // NOPMD
                  detectPackageName(warning);
                  warnings.add(warning);
              }
              if (Thread.interrupted()) {
                  throw new ParsingCanceledException();
              }
          }
      }