public static TextPosition create(int line, int column) {
    if (line < 1 || column < 1)
      return TextPosition.NOT_AVAILABLE;
    return new TextPosition(line, column);
  }
Creates a new TextPosition instance.

@param line the position's line number
@param column the position's column number
@throws IllegalArgumentException if line or column is less than 1
spock-core/src/main/java/org/spockframework/runtime/model/TextPosition.java