String (TestIdentifier testIdentifier) { Optional<TestIdentifier> parent = myTestPlan.getParent(testIdentifier); return parent .map(identifier -> shouldSkipContainer(identifier) ? getParentId(identifier) : identifier.getUniqueId() + myIdSuffix) .orElse("0"); }