@Override
  public boolean hasScopeEndingAt(@NotNull Editor editor, int offset) {
    return checkOrRemoveScopeEndingAt(editor, offset, false) > 0;
  }
@Override
  public boolean hasScopeEndingAt(@NotNull Editor editor, int offset)