public static boolean shouldDelegateToTopLevel(@NotNull PsiFile file) {
    for (var provider : InjectedFormattingOptionsProvider.EP_NAME.getExtensionList()) {
      var result = provider.shouldDelegateToTopLevel(file);
      if (result == null) continue;
      return result;
    }
    return true;
  }
public static boolean shouldDelegateToTopLevel(@NotNull PsiFile file)