ProjectDictionary (Collection<String> projectWords) { String currentUser = System.getProperty("user.name"); final ProjectDictionary projectDictionary = new ProjectDictionary(Collections.singleton(new UserDictionary(currentUser))); projectDictionary.setActiveName(currentUser); projectDictionary.addToDictionary(projectWords); return projectDictionary; }