code: public int removeAll (String pattern)
      {
          Pattern pat = makePattern(pattern);
          int removed = 0;
          Iterator<String> i = _imports.iterator();
          while (i.hasNext()) {
              String name = i.next();
              if (pat.matcher(name).matches()) {
                  i.remove();
                  ++removed;
              }
          }
          return removed;
      }
docs: Remove all imports matching the given pattern.
  @param pattern the dumbed down regex to match (see description above)
  @return the number of imports removed