From bf827c443e2a8357d7e9171bd99d4a74b6f097ed Mon Sep 17 00:00:00 2001 From: Jaime Wren Date: Tue, 7 Jan 2025 19:16:42 -0800 Subject: [PATCH] Migrate off of Extensions.getExtensions() usage. --- .../src/io/flutter/project/FlutterProjectOpenProcessor.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/flutter-idea/src/io/flutter/project/FlutterProjectOpenProcessor.java b/flutter-idea/src/io/flutter/project/FlutterProjectOpenProcessor.java index abfefc82d4..2a55f285fd 100644 --- a/flutter-idea/src/io/flutter/project/FlutterProjectOpenProcessor.java +++ b/flutter-idea/src/io/flutter/project/FlutterProjectOpenProcessor.java @@ -7,7 +7,6 @@ import com.intellij.openapi.application.ApplicationInfo; import com.intellij.openapi.diagnostic.Logger; -import com.intellij.openapi.extensions.Extensions; import com.intellij.openapi.module.Module; import com.intellij.openapi.project.Project; import com.intellij.openapi.vfs.VirtualFile; @@ -22,7 +21,6 @@ import org.jetbrains.annotations.Nullable; import javax.swing.*; -import java.util.Arrays; import java.util.Objects; public class FlutterProjectOpenProcessor extends ProjectOpenProcessor { @@ -76,7 +74,7 @@ public Project doOpenProject(@NotNull VirtualFile file, @Nullable Project projec @Nullable protected ProjectOpenProcessor getDelegateImportProvider(@NotNull VirtualFile file) { - return Arrays.stream(Extensions.getExtensions(EXTENSION_POINT_NAME)).filter( + return EXTENSION_POINT_NAME.getExtensionList().stream().filter( processor -> processor.canOpenProject(file) && !Objects.equals(processor.getName(), getName()) ).findFirst().orElse(null); }