code: protected boolean isGetterOrSetter(String name, int index, boolean setter) {
          Slot slot = slotMap.query(name, index);
          if (slot instanceof GetterSlot) {
              if (setter && ((GetterSlot)slot).setter != null) return true;
              if (!setter && ((GetterSlot)slot).getter != null) return true;
          }
          return false;
      }
docs: Returns whether a property is a getter or a setter
  @param name property name
  @param index property index
  @param setter true to check for a setter, false for a getter
  @return whether the property is a getter or a setter