diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/impl/VirtualDirectoryImpl.java b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/impl/VirtualDirectoryImpl.java index b832ae9eb455..5b9d83d0a222 100644 --- a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/impl/VirtualDirectoryImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/impl/VirtualDirectoryImpl.java @@ -117,7 +117,9 @@ public class VirtualDirectoryImpl extends VirtualFileSystemEntry { // in this case we should remove it from there removeFromArray(indexInReal); } - assertConsistency(ignoreCase, name); + if (CHECK) { + assertConsistency(ignoreCase, name); + } } @Nullable // null if there can't be a child with this name, NULL_VIRTUAL_FILE