code: @Nullable
      public static Path findRootPathForClass(Class<?> clazz) {
          Objects.requireNonNull(clazz, "resourceName");
          String resourceName = classToResourceName(clazz);
          return findRootPathForResource(resourceName, clazz.getClassLoader());
      }
docs: Find the root path for the given class. If the class is found in a Jar file, then the
  result will be an absolute path to the jar file. If the resource is found in a directory,
  then the result will be the parent path of the given resource.
  
  @param clazz class to search for
  @return absolute path of the root of the resource.