public Collection<Library> getRelevantLibraries() {
    List result = new ArrayList();

    for (Library library : this.libraries) {
      if (library.appliesToCurrentEnvironment()) {
        result.add(library);
      }
    }

    return result;
  }