static boolean isDisabled(@NotNull VirtualFile file) {
    return ObjectUtils.doIfCast(file.getFileSystem(), VersionManagingFileSystem.class,
                                fs -> fs.getVersioningType(file)) == VersioningType.DISABLED;
  }
static boolean isDisabled(@NotNull VirtualFile file)