String (AbstractTestProxy node) { int magnitude = node.getMagnitude(); // TODO enumeration! return switch (magnitude) { case 0, 2, 4 -> STATUS_SKIPPED; case 5 -> STATUS_IGNORED; case 1 -> STATUS_PASSED; case 6 -> STATUS_FAILED; case 8 -> STATUS_ERROR; default -> node.isPassed() ? STATUS_PASSED : STATUS_FAILED; }; }