/** Fetches any styles that match the passed into arguments into <code>matches</code>. */
  private void getMatchingStyles(java.util.List matches, JComponent c, Region id) {
    String idName = id.getLowerCaseName();
    String cName = c.getName();

    if (cName == null) {
      cName = "";
    }
    for (int counter = _styles.size() - 1; counter >= 0; counter--) {
      StyleAssociation sa = _styles.get(counter);
      String path;

      if (sa.getID() == NAME) {
        path = cName;
      } else {
        path = idName;
      }

      if (sa.matches(path) && matches.indexOf(sa.getStyle()) == -1) {
        matches.add(sa.getStyle());
      }
    }
  }