code: public DiagnosticPosition setPos(DiagnosticPosition currentPos) {
          DiagnosticPosition prevPosition = this.currentPos;
          this.currentPos = currentPos;
          return prevPosition;
      }
docs: Sets the current position to the provided {@code currentPos}. {@link LintLogger}s
  passed to subsequent invocations of {@link #report(LintLogger) } will be associated
  with the given position.