@SuppressWarnings("unchecked")
  public <V extends FileAttributeView> @Nullable V getFileAttributeView(
      FileLookup lookup, Class<V> type) {
    AttributeProvider provider = providersByViewType.get(type);

    if (provider != null) {
      return (V) provider.view(lookup, createInheritedViews(lookup, provider));
    }

    return null;
  }
Returns an attribute view of the given type for the given file lookup callback, or {@code null}
if the view type is not supported.
jimfs/src/main/java/com/google/common/jimfs/AttributeService.java