void (@NotNull Graphics2D g2, @NotNull PrintElement printElement, boolean isSelected) { if (printElement instanceof EdgePrintElement) { if (isSelected) { printEdge(g2, MARK_COLOR, true, (EdgePrintElement)printElement); } else { printEdge(g2, getColor(printElement), false, (EdgePrintElement)printElement); } } if (printElement instanceof NodePrintElement) { int position = printElement.getPositionInCurrentRow(); if (isSelected) { paintCircle(g2, position, MARK_COLOR, true); } else { paintCircle(g2, position, getColor(printElement), false); } } }