From cf77076a2c4d3aa9f6495f5558b7c53aa2042c5e Mon Sep 17 00:00:00 2001 From: Max Medvedev Date: Wed, 19 Nov 2025 14:41:41 +0100 Subject: [PATCH] [psi] use `getLanguage` method instead of `myLanguage` getLanguage is overridden rather often, and myLanguage has no effect in this case GitOrigin-RevId: 9c04ea8cbbf33c4080c636cf6e0e0459dc856c3d --- platform/core-api/src/com/intellij/psi/tree/IElementType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/core-api/src/com/intellij/psi/tree/IElementType.java b/platform/core-api/src/com/intellij/psi/tree/IElementType.java index 3137924b89a4..01c3d09d1cc2 100644 --- a/platform/core-api/src/com/intellij/psi/tree/IElementType.java +++ b/platform/core-api/src/com/intellij/psi/tree/IElementType.java @@ -282,7 +282,7 @@ public class IElementType { Map> byLang = Stream.of(registrySnapshot) .filter(Objects::nonNull) - .collect(Collectors.groupingBy(ie -> ie.myLanguage)); + .collect(Collectors.groupingBy(ie -> ie.getLanguage())); Map.Entry> max = Collections.max(byLang.entrySet(), Comparator.comparingInt(e -> e.getValue().size()));