code: private IndexConstraintNodeInfo nodeInfoFromIndexDefinition(IndexReference indexReference, SchemaRead schemaRead, TokenNameLookup tokens){
          int[] labelIds = indexReference.schema().getEntityTokenIds();
          if (labelIds.length != 1) throw new IllegalStateException("Index with more than one label");
          String labelName =  tokens.labelGetName(labelIds[0]);
          List<String> properties = new ArrayList<>();
          Arrays.stream(indexReference.properties()).forEach((i) -> properties.add(tokens.propertyKeyGetName(i)));
          try {
              return new IndexConstraintNodeInfo(
                      // Pretty print for index name
                      String.format(":%s(%s)", labelName, StringUtils.join(properties, ",")),
                      labelName,
                      properties,
                      schemaRead.indexGetState(indexReference).toString(),
                      !indexReference.isUnique() ? "INDEX" : "UNIQUENESS",
                      schemaRead.indexGetState(indexReference).equals(InternalIndexState.FAILED) ? schemaRead.indexGetFailure(indexReference) : "NO FAILURE",
                      schemaRead.indexGetPopulationProgress(indexReference).getCompleted() / schemaRead.indexGetPopulationProgress(indexReference).getTotal() * 100,
                      schemaRead.indexSize(indexReference),
                      schemaRead.indexUniqueValuesSelectivity(indexReference),
                      indexReference.userDescription(tokens)
              );
          } catch(IndexNotFoundKernelException e) {
              return new IndexConstraintNodeInfo(
                      // Pretty print for index name
                      String.format(":%s(%s)", labelName, StringUtils.join(properties, ",")),
                      labelName,
                      properties,
                      "NOT_FOUND",
                      !indexReference.isUnique() ? "INDEX" : "UNIQUENESS",
                      "NOT_FOUND",
                      0,0,0,
                      indexReference.userDescription(tokens)
              );
          }
      }
docs: Index info from IndexDefinition
  
  @param indexReference
  @param schemaRead
  @param tokens
  @return