DefaultExternalSourceSet (IonReader reader, ReadContext context) { if (reader.next() == null) return null; reader.stepIn(); DefaultExternalSourceSet sourceSet = new DefaultExternalSourceSet(); sourceSet.setName(readString(reader, "name")); sourceSet.setSourceCompatibility(readString(reader, "sourceCompatibility")); sourceSet.setTargetCompatibility(readString(reader, "targetCompatibility")); sourceSet.setPreview(readBoolean(reader, "isPreview")); sourceSet.setArtifacts(readFiles(reader)); sourceSet.getDependencies().addAll(readDependencies(reader, context)); sourceSet.setSources(readSourceDirectorySets(reader)); sourceSet.setJdkInstallationPath(readString(reader, "jdkInstallationPath")); reader.stepOut(); return sourceSet; }