code: public LibrarySet[] getActiveLibrarySets(final LinkerDef[] defaultProviders, final int index) {
      if (isReference()) {
        return ((LinkerDef) getCheckedRef(LinkerDef.class, "LinkerDef"))
            .getActiveUserLibrarySets(defaultProviders, index);
      }
      final Project p = getProject();
      final Vector libsets = new Vector();
      for (int i = index; i < defaultProviders.length; i++) {
        defaultProviders[i].addActiveUserLibrarySets(p, libsets);
      }
      addActiveUserLibrarySets(p, libsets);
      for (int i = index; i < defaultProviders.length; i++) {
        defaultProviders[i].addActiveSystemLibrarySets(p, libsets);
      }
      addActiveSystemLibrarySets(p, libsets);
      final LibrarySet[] sets = new LibrarySet[libsets.size()];
      libsets.copyInto(sets);
      return sets;
    }
docs: Returns an array of active library sets for this linker definition.