List<CodeUnit> javaPrivateFields() { return privateFields .map((field) => JavaField(field, depth: depth + 1, isPrivate: true)) .toList(); }