List<CodeUnit> javaPublicFields() { return publicFields .map((field) => JavaField(field, depth: depth + 1, isPublic: true)) .toList(); }