diff --git a/src/io/flutter/editor/ActiveEditorsOutlineService.java b/src/io/flutter/editor/ActiveEditorsOutlineService.java index cc1ced053..511ae0e99 100644 --- a/src/io/flutter/editor/ActiveEditorsOutlineService.java +++ b/src/io/flutter/editor/ActiveEditorsOutlineService.java @@ -6,6 +6,7 @@ package io.flutter.editor; import com.google.common.collect.Lists; +import com.intellij.util.SmartList; import com.intellij.openapi.Disposable; import com.intellij.openapi.editor.ex.EditorEx; import com.intellij.openapi.fileEditor.FileEditor; @@ -100,7 +101,7 @@ private void updateActiveEditors() { } // Remove obsolete outline listeners. - final List obsoletePaths = new ArrayList<>(); + final List obsoletePaths = new SmartList<>(); synchronized (outlineListeners) { for (final String path : outlineListeners.keySet()) {