void (@NotNull VirtualFile file, @NotNull String suffixPath) { String vfsSuffixPath = FileUtil.toSystemIndependentName(suffixPath); String vfsPath = file.getPath(); if (!file.isCaseSensitive() && !vfsPath.endsWith(vfsSuffixPath) && StringUtil.endsWithIgnoreCase(vfsPath, vfsSuffixPath)) { String realSuffixPath = vfsPath.substring(vfsPath.length() - vfsSuffixPath.length()); Assert.fail("Please correct case-sensitivity of path to prevent test failure on case-sensitive file systems:\n" + " path " + suffixPath + "\n" + "real path " + realSuffixPath); } }