diff --git a/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionLookupArranger.java b/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionLookupArranger.java index cff59c10fddf..87ce27cfa00b 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionLookupArranger.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionLookupArranger.java @@ -51,8 +51,8 @@ public class CompletionLookupArranger extends LookupArranger { private static final Logger LOG = Logger.getInstance("#com.intellij.codeInsight.completion.CompletionLookupArranger"); @Nullable private static StatisticsUpdate ourPendingUpdate; private static final Alarm ourStatsAlarm = new Alarm(ApplicationManager.getApplication()); - private static final Key PRESENTATION_INVARIANT = Key.create("PRESENTATION_INVARIANT"); - private static final Comparator BY_PRESENTATION_COMPARATOR = new Comparator() { + private final Key PRESENTATION_INVARIANT = Key.create("PRESENTATION_INVARIANT"); + private final Comparator BY_PRESENTATION_COMPARATOR = new Comparator() { @Override public int compare(LookupElement o1, LookupElement o2) { String invariant = PRESENTATION_INVARIANT.get(o1); @@ -208,7 +208,7 @@ public class CompletionLookupArranger extends LookupArranger { return tailText == null || tailText.isEmpty() ? " " : tailText; } - private static List sortByPresentation(Iterable source, LookupImpl lookup) { + private List sortByPresentation(Iterable source, LookupImpl lookup) { ArrayList startMatches = ContainerUtil.newArrayList(); ArrayList middleMatches = ContainerUtil.newArrayList(); for (LookupElement element : source) { @@ -369,7 +369,7 @@ public class CompletionLookupArranger extends LookupArranger { return new CompletionLookupArranger(myParameters, myProcess); } - private static int getItemToSelect(LookupImpl lookup, List items, boolean onExplicitAction, @Nullable LookupElement mostRelevant) { + private int getItemToSelect(LookupImpl lookup, List items, boolean onExplicitAction, @Nullable LookupElement mostRelevant) { if (items.isEmpty() || lookup.getFocusDegree() == LookupImpl.FocusDegree.UNFOCUSED) { return 0; } @@ -577,7 +577,7 @@ public class CompletionLookupArranger extends LookupArranger { } } - private static class AlphaClassifier extends Classifier { + private class AlphaClassifier extends Classifier { private final LookupImpl myLookup; private AlphaClassifier(LookupImpl lookup) {