TreeModelBuilder (@Nullable Map<VirtualFile, LogicalLock> logicallyLockedFiles) { if (ContainerUtil.isEmpty(logicallyLockedFiles)) return this; ChangesBrowserNode<?> subtreeRoot = createTagNode(ChangesBrowserNode.LOGICALLY_LOCKED_TAG); List<VirtualFile> keys = sorted(logicallyLockedFiles.keySet(), FILE_COMPARATOR); for (VirtualFile file : keys) { final LogicalLock lock = logicallyLockedFiles.get(file); insertChangeNode(file, subtreeRoot, ChangesBrowserNode.createLogicallyLocked(myProject, file, lock)); } return this; }