format/src/main/java/com/github/sadikovi/riff/tree/rule/IndexFieldsExtract.java
/** Return either trivial node or index field node for bound reference */
Return either trivial node or index field node for bound reference
Return either trivial node or index field node for bound reference
private Tree updateRef(BoundReference ref) {
    TypeSpec spec = td.atPosition(ref.ordinal());
    return spec.isIndexed() ? ref.copy() : new Trivial(true);
  }
private Tree updateRef ( BoundReference ref ) { TypeSpec spec = td . atPosition ( ref . ordinal ( ) ) ; return spec . isIndexed ( ) ? ref . copy ( ) : new Trivial ( true ) ; }
Return either trivial node or index field node for bound reference
Return either trivial node or index field node for bound reference
// all non-indexed fields are replaced with `true`, this maintains correctness of the tree