code: private boolean contains(ArrayList defs, DefBase obj)
      {
          for (Iterator it = defs.iterator(); it.hasNext();)
          {
              if (obj.getName().equals(((DefBase)it.next()).getName()))
              {
                  return true;
              }
          }
          return false;
      }
docs: Determines whether the given list contains a descriptor with the same name.
  
  @param defs The list to search
  @param obj  The object that is searched for
  @return <code>true</code> if the list contains a descriptor with the same name