private static void checkCircuit ( Map < Circuit , Collection < TileRef > > circuits , MapCircuitExtractor extractor , MapTile map , Tile tile ) { final Circuit circuit = extractor . getCircuit ( tile ) ; if ( circuit != null ) { final TileRef ref = new TileRef ( tile ) ; getTiles ( circuits , circuit ) . add ( ref ) ; checkTransitionGroups ( circuits , circuit , map , ref ) ; } }
Check the tile circuit and add it to circuits collection if valid .