String () { @NonNls String anchor = switch (this.anchor) { case SwingConstants.TOP -> "TOP"; case SwingConstants.BOTTOM -> "BOTTOM"; case SwingConstants.LEFT -> "LEFT"; case SwingConstants.RIGHT -> "RIGHT"; default -> null; }; return getClass().getName() + " " + anchor; }