Source:
<code>public void enrich(final Optional<String> nodeUUID, final Optional<DecisionTable> expression) { expression.ifPresent(dtable -> { dtable.setHitPolicy(HitPolicy.ANY); dtable.setPreferredOrientation(DecisionTableOrientation.RULE_AS_ROW); final InputClause ic = new InputClause(); final LiteralExpression le = new LiteralExpression(); le.setText(DecisionTableDefaultValueUtilities.getNewInputClauseName(dtable)); ic.setInputExpression(le); dtable.getInput().add(ic); final OutputClause oc = new OutputClause(); oc.setName(DecisionTableDefaultValueUtilities.getNewOutputClauseName(dtable)); dtable.getOutput().add(oc); final DecisionRule dr = new DecisionRule(); final UnaryTests drut = new UnaryTests(); drut.setText(DecisionTableDefaultValueUtilities.INPUT_CLAUSE_UNARY_TEST_TEXT); dr.getInputEntry().add(drut); final LiteralExpression drle = new LiteralExpression(); drle.setText(DecisionTableDefaultValueUtilities.OUTPUT_CLAUSE_EXPRESSION_TEXT); dr.getOutputEntry().add(drle); final Description d = new Description(); d.setValue(DecisionTableDefaultValueUtilities.RULE_DESCRIPTION); dr.setDescription(d); dtable.getRule().add(dr); ic.setParent(dtable); oc.setParent(dtable); dr.setParent(dtable); le.setParent(ic); drut.setParent(dr); <START> drle.setParent(dr); <END> if (nodeUUID.isPresent()) { enrichInputClauses(nodeUUID.get(), dtable); } else { enrichOutputClauses(dtable); } }); }</code><technical_language>Michael, please variable names ic, oc, dr ... . hard readable/understandable if method is long this distance variable declaration usage is more 2/3 lines. I expect fix occurrences in codebase, fix new added code in this PR, methods trivial? is fine is. For example method declare variable, calls 3/4 methods returns it</technical_language>

Target:
public void enrich(final Optional<String> nodeUUID, final Optional<DecisionTable> expression) { expression.ifPresent(dtable -> { dtable.setHitPolicy(HitPolicy.ANY); dtable.setPreferredOrientation(DecisionTableOrientation.RULE_AS_ROW); final InputClause inputClause = new InputClause(); final LiteralExpression literalExpression = new LiteralExpression(); literalExpression.setText(DecisionTableDefaultValueUtilities.getNewInputClauseName(dtable)); inputClause.setInputExpression(literalExpression); dtable.getInput().add(inputClause); final OutputClause outputClause = new OutputClause(); outputClause.setName(DecisionTableDefaultValueUtilities.getNewOutputClauseName(dtable)); dtable.getOutput().add(outputClause); final DecisionRule decisionRule = new DecisionRule(); final UnaryTests decisionRuleUnaryTest = new UnaryTests(); decisionRuleUnaryTest.setText(DecisionTableDefaultValueUtilities.INPUT_CLAUSE_UNARY_TEST_TEXT); decisionRule.getInputEntry().add(decisionRuleUnaryTest); final LiteralExpression decisionRuleLiteralExpression = new LiteralExpression(); decisionRuleLiteralExpression.setText(DecisionTableDefaultValueUtilities.OUTPUT_CLAUSE_EXPRESSION_TEXT); decisionRule.getOutputEntry().add(decisionRuleLiteralExpression); final Description description = new Description(); description.setValue(DecisionTableDefaultValueUtilities.RULE_DESCRIPTION); decisionRule.setDescription(description); dtable.getRule().add(decisionRule); inputClause.setParent(dtable); outputClause.setParent(dtable); decisionRule.setParent(dtable); literalExpression.setParent(inputClause); decisionRuleUnaryTest.setParent(decisionRule); decisionRuleLiteralExpression.setParent(decisionRule); if (nodeUUID.isPresent()) { enrichInputClauses(nodeUUID.get(), dtable); } else { enrichOutputClauses(dtable); } }); }