diff --git a/src/main/java/org/openrewrite/LanguageComposition.java b/src/main/java/org/openrewrite/LanguageComposition.java
index 3333f8d..9102c52 100644
--- a/src/main/java/org/openrewrite/LanguageComposition.java
+++ b/src/main/java/org/openrewrite/LanguageComposition.java
@@ -189,12 +189,12 @@ public TreeVisitor<?, ExecutionContext> getScanner(Accumulator acc) {
                         .computeIfAbsent(folderPath, k -> new HashMap<>())
                         .computeIfAbsent(fileComposition.getLanguage(), k -> new Counts());
                 counts.fileCount++;
-                counts.lineCount += fileComposition.languageLineCount;
+                counts.lineCount += fileComposition.getLanguageLineCount();
                 perFileReport.insertRow(ctx, new LanguageCompositionPerFile.Row(
                         s.getSourcePath().toString(),
-                        fileComposition.language,
+                        fileComposition.getLanguage(),
                         s.getClass().getName(),
-                        fileComposition.fileLineCount,
+                        fileComposition.getFileLineCount(),
                         hasParseFailure));
                 return tree;
             }