code: int handleSqlSingleQuotes(String line, BitSet quoteBitSet,
        int startingPoint) {
      int end;
      int quoteCounter = 1;
      boolean quotationEnded = false;
      do {
        end = line.indexOf('\'', startingPoint + 1);
        if (end > -1) {
          quoteCounter++;
        }
        if (end == -1 || end == line.length() - 1) {
          quoteBitSet.set(startingPoint, line.length());
          quotationEnded = true;
        } else if (line.charAt(end + 1) != '\'' && quoteCounter % 2 == 0) {
          quotationEnded = true;
        }
        end = end == -1 ? line.length() - 1 : end;
        quoteBitSet.set(startingPoint, end + 1);
        startingPoint = end;
      } while (!quotationEnded && end < line.length());
      return startingPoint;
    }
docs: Marks single-quoted string position based on input.
  
  <p>Assumes that there is a single quote in the specified position,
  i.e. {@code line.charAt(startingPoint) == '\''}.
  
  @param line          Line where to handle single-quoted string
  @param quoteBitSet   BitSet to use for positions of single quoted lines
  @param startingPoint Start point
  
  @return position of closing (non-escaped) quote (')
  
  <p>Example
  String line = "test 'Single '' line quoted''' 'another'' quoted'' line'";
  
  <p><code>handleSqlSingleQuotes(line, quoteBitSet,
  line.indexOf("'Single"));</code>
  should return position of the quote (') closing the first quoted string
  and mark single quoted line inside {@code quoteBitSet}.