public static Place getShreds(@NotNull FileViewProvider viewProvider) {
    if (!(viewProvider instanceof InjectedFileViewProvider myFileViewProvider)) return null;
    return getShreds(myFileViewProvider.getDocument());
  }
public static Place getShreds(@NotNull FileViewProvider viewProvider)