public static void checkRange(int row, int column) {
        if (row < 0) {
            throw new IllegalArgumentException("row must be in range 0-" + (row - 1));
        }
        if (column < 0) {
            throw new IllegalArgumentException("column must be in range 0-" + (row - 1));
        }
    }
Check if the Cell is in the size of the manager.
Throw exception if it is not.

@param row
@param column
android-patternview/src/main/java/com/eftimoff/patternview/utils/CellUtils.java