@Override
  public @Nullable ASTNode reparseLeaf(@NotNull ASTNode leaf, @NotNull CharSequence newText) {
    Language contextLanguage = leaf.getPsi().getLanguage();
    if (contextLanguage == Language.ANY) {
      return null;
    }

    ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(contextLanguage);
    if (parserDefinition == null) {
      return null;
    }

    for (int i = 0; i < newText.length(); i++) {
      if (!Character.isWhitespace(newText.charAt(i))) {
        return null;
      }
    }

    return parserDefinition.reparseSpace(leaf, newText);
  }
@Override
  public @Nullable ASTNode reparseLeaf(@NotNull ASTNode leaf, @NotNull CharSequence newText)