void () { boolean isCaseSensitive = isCaseSensitive(); synchronized (myData) { VirtualFileSystemEntry[] children = getArraySafely(true); Comparator<VirtualFile> byName = (v1, v2) -> compareNames(v1.getNameSequence(), v2.getNameSequence(), isCaseSensitive); ContainerUtil.sort(children, byName); int[] result = ArrayUtil.newIntArray(children.length); for (int i = 0; i < children.length; i++) { VirtualFileSystemEntry child = children[i]; result[i] = child.getId(); } myData.myChildrenIds = result; assertConsistency(isCaseSensitive, children, "afterCaseSensitivityChanged", isCaseSensitive); } }