@NotNull
  @Override
  public Range getRange(@NotNull Side baseSide, int line) {
    if (line < 0) {
      LOG.error("Invalid line number: " + line);
      return idRange(line);
    }

    ScrollHelper helper = new ScrollHelper(baseSide, line);
    processHelper(helper);

    int master1 = helper.getMaster1();
    int master2 = helper.getMaster2();
    int slave1 = helper.getSlave1();
    int slave2 = helper.getSlave2();
    return new Range(master1, master2, slave1, slave2);
  }
@NotNull
  @Override
  public Range getRange(@NotNull Side baseSide, int line)