int[] (@NotNull Node node) { IntList list = new IntArrayList(); Iterator<Node> out = myGraph.getOut(node); while (out.hasNext()) { list.add(myNodeIndex.applyAsInt(out.next())); } return list.isEmpty() ? ArrayUtilRt.EMPTY_INT_ARRAY : list.toIntArray(); }