docs: public static boolean checkCase(final File file, String pathToTest) {
          if (pathToTest == null || pathToTest.isEmpty()) {
              return true;
          }
  
          if (IS_OS_CASE_SENSITIVE) {
              // It is assumed that the file exists.  Therefore, its case must
              //  match if we know that the file system is case sensitive.
              return true;
          }
  
          try {
              // This will handle the case where the file system is not case sensitive, but
              // doesn't support symbolic links.  A canonical file path will handle this case.
              if (checkCaseCanonical(file, pathToTest)) {
                  return true;
              }
  
              // We didn't know for sure that the file system is case sensitive and a
              // canonical check didn't pass. Try to handle both symbolic links and case
              // insensitive files together.
              return checkCaseSymlink(file, pathToTest);
  
          } catch (PrivilegedActionException e) {
              // We couldn't access the file system to test the path so must have failed
              return false;
          }
      }