private void displayResult(final List result) {
    final StringBuilder resultStringBuilder = new StringBuilder();
    if (result == null) {
      resultStringBuilder.append(getResultString(result));
    } else if (result.size() == 1) {
      resultStringBuilder.append(getResultString(result.get(0)));
    } else {
      for (int i = 0; i < result.size(); i++) {
        final Object resultObj = result.get(i);
        resultStringBuilder.append("Value " + i + ": " + getResultString(resultObj) + '\n');
      }
    }

    displayOutput(Color.BLACK, resultStringBuilder.toString());
  }