public boolean isAutoFormatAllowed(@NotNull PsiElement context) {
    return ContainerUtil.and(LanguageFormattingRestriction.EP_NAME.getExtensionList(), each -> each.isAutoFormatAllowed(context));
  }
public boolean isAutoFormatAllowed(@NotNull PsiElement context)