@Override
  public boolean isAutoFormatAllowed(@NotNull PsiElement context) {
    if (!context.isValid()) {
      return false;
    }
    List<CustomAutoFormatSyntaxErrorsVerifier> verifiers =
      ContainerUtil.filter(CustomAutoFormatSyntaxErrorsVerifier.EP_NAME.getExtensionList(), verifier -> verifier.isApplicable(context));
    return verifiers.isEmpty()
           ? containsValidPsi(context)
           : ContainerUtil.and(verifiers, verifier -> verifier.checkValid(context));
  }
@Override
  public boolean isAutoFormatAllowed(@NotNull PsiElement context)