Icon (@Nullable EventResult result) { if (result == null) { return NODE_ICON_RUNNING; } if (result instanceof MessageEventResult) { return getIcon(((MessageEventResult) result).getKind()); } if (isFailed(result)) { return NODE_ICON_ERROR; } if (isSkipped(result)) { return NODE_ICON_SKIPPED; } return NODE_ICON_OK; }