public static boolean isLocalResourceUri(@Nullable Uri uri) {
    final String scheme = getSchemeOrNull(uri);
    return LOCAL_RESOURCE_SCHEME.equals(scheme);
  }
Check if uri represents local resource

@param uri uri to check
@return true if uri's scheme is equal to {@link #LOCAL_RESOURCE_SCHEME}
fbcore/src/main/java/com/facebook/common/util/UriUtil.java