InternalIdeaSourceDirectory (IonReader reader) { IonType ionType = reader.next(); if (ionType == IonType.NULL || ionType == null) { return null; } reader.stepIn(); InternalIdeaSourceDirectory sourceDirectory = new InternalIdeaSourceDirectory(); sourceDirectory.setGenerated(readBoolean(reader, "generated")); sourceDirectory.setDirectory(readFile(reader, "directory")); reader.stepOut(); return sourceDirectory; }