code: private void createNeighborhoods() {
      neighbours = new ArrayList<List<Integer>>(solutionListSize);
  
      for (int i = 0; i < solutionListSize; i++) {
        neighbours.add(new ArrayList<Integer>());
        neighbours.get(i).add(i);
      }
    }
docs: Initialize all the neighborhoods, adding the current solution to them.