diff --git a/platform/lang-impl/src/com/intellij/refactoring/IntroduceTargetChooser.java b/platform/lang-impl/src/com/intellij/refactoring/IntroduceTargetChooser.java index f94cb1f6c431..982c5ca0cd61 100644 --- a/platform/lang-impl/src/com/intellij/refactoring/IntroduceTargetChooser.java +++ b/platform/lang-impl/src/com/intellij/refactoring/IntroduceTargetChooser.java @@ -31,7 +31,7 @@ import javax.swing.*; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import java.awt.*; -import java.util.ArrayList; +import java.util.Collections; import java.util.List; public class IntroduceTargetChooser { @@ -104,9 +104,7 @@ public class IntroduceTargetChooser { final int index = list.getSelectedIndex(); if (index < 0 ) return; final T expr = (T)model.get(index); - final ArrayList toExtract = new ArrayList(); - toExtract.add(expr); - highlighter.highlight(expr, toExtract); + highlighter.highlight(expr, Collections.singletonList(expr)); } });