void (@NotNull Graphics2D g2, @NotNull Color color, boolean isSelected, @NotNull EdgePrintElement edgePrintElement) { int from = edgePrintElement.getPositionInCurrentRow(); int to = edgePrintElement.getPositionInOtherRow(); boolean isUsual = isUsual(edgePrintElement); if (edgePrintElement.getType() == EdgePrintElement.Type.DOWN) { paintDownLine(g2, color, from, to, edgePrintElement.hasArrow(), isUsual, isSelected, edgePrintElement instanceof TerminalEdgePrintElement); } else { paintUpLine(g2, color, from, to, edgePrintElement.hasArrow(), isUsual, isSelected, edgePrintElement instanceof TerminalEdgePrintElement); } }