public void paintConflicts(final Graphics g, final NavigatableComponent nc) {
Color preferencesColor = getColor();
if (preferencesColor.equals(Main.pref.getColor(marktr("background"), Color.black)))
return;
g.setColor(preferencesColor);
Visitor conflictPainter = new AbstractVisitor() {
// Manage a stack of visited relations to avoid infinite recursion with cyclic relations (fix #7938)
private final Set<Relation> visited = new HashSet<>();
@Override
public void visit(Node n) {
Point p = nc.getPoint(n);