Set<LibraryPathType> (boolean sourceResolved, boolean docResolved) { Set<LibraryPathType> requiredComponentTypes = EnumSet.noneOf(LibraryPathType.class); if (!sourceResolved) { requiredComponentTypes.add(LibraryPathType.SOURCE); } if (!docResolved) { requiredComponentTypes.add(LibraryPathType.DOC); } return requiredComponentTypes; }