private Node fetchNode(Graph g, Object2LongOpenHashMap<Instance> mapping, Instance inst) { if (mapping.containsKey(inst)) { return g.getNode(mapping.getLong(inst)); } return createNode(g, mapping, inst); }