This should be
```java
if (cursor.getTupleInfo().isFixedSize()) {
    return cursor.getTupleInfo().getFixedSize();
}
else {
    // varbinary code from below
}