private static int getIndex(boolean isPhysical, boolean incompleteCode, boolean isPoly) {
    return (isPhysical ? 0 : 4) + (incompleteCode ? 0 : 2) + (isPoly ? 0 : 1);
  }
private static int getIndex(boolean isPhysical, boolean incompleteCode, boolean isPoly)