diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionTree.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionTree.java index dc1c645b7168..982f73785e76 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionTree.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionTree.java @@ -337,7 +337,9 @@ public class InspectionTree extends Tree { } if (descriptorChildren != null) { - Collections.sort(descriptorChildren, DESCRIPTOR_COMPARATOR); + if (descriptorChildren.size() > 1) { + Collections.sort(descriptorChildren, DESCRIPTOR_COMPARATOR); + } descriptors.addAll(descriptorChildren); } }