From a804d4ae2fe65b6a119368f50be0377cbd42a987 Mon Sep 17 00:00:00 2001 From: Alexander Koshevoy Date: Mon, 6 Oct 2025 21:16:47 +0200 Subject: [PATCH] Simplify PREDEFINED_PERSISTENT_TYPES instantiation (IJPL-209433) Following the suggestion in the review IJ-CR-176898. GitOrigin-RevId: 6cd7a53c32f555689f3fd839ac5f930d68a1ac7e --- .../src/com/intellij/openapi/roots/OrderRootType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/projectModel-api/src/com/intellij/openapi/roots/OrderRootType.java b/platform/projectModel-api/src/com/intellij/openapi/roots/OrderRootType.java index f3857a5cecb1..90191ddceec3 100644 --- a/platform/projectModel-api/src/com/intellij/openapi/roots/OrderRootType.java +++ b/platform/projectModel-api/src/com/intellij/openapi/roots/OrderRootType.java @@ -52,7 +52,7 @@ public class OrderRootType { * {@link #EP_NAME} and are combined with this list in {@link #getAllPersistentTypesList()}. */ private static final @NotNull @Unmodifiable List PREDEFINED_PERSISTENT_TYPES = - ContainerUtil.map(List.of(CLASSES, SOURCES), PersistentOrderRootType.class::cast); + List.of((PersistentOrderRootType)CLASSES, (PersistentOrderRootType)SOURCES); /** * Generic documentation order root type