code: public static boolean isMountingPoint(String path, String[] fsTypes) throws IOException {
      List<UnixMountInfo> infoList = ShellUtils.getUnixMountInfo();
      for (UnixMountInfo info : infoList) {
        Optional<String> mountPoint = info.getMountPoint();
        Optional<String> fsType = info.getFsType();
        if (mountPoint.isPresent() && mountPoint.get().equals(path) && fsType.isPresent()) {
          for (String expectedType : fsTypes) {
            if (fsType.get().equalsIgnoreCase(expectedType)) {
              return true;
            }
          }
        }
      }
      return false;
    }
docs: Checks whether a path is the mounting point of a RAM disk volume.
  
  @param path  a string represents the path to be checked
  @param fsTypes an array of strings represents expected file system type
  @return true if the path is the mounting point of volume with one of the given fsTypes,
  false otherwise
  @throws IOException if the function fails to get the mount information of the system