code: private void setTrimLeadingWhitespacesByReflection(Renderer result, boolean trimLeadingCommonSourceWhitespaces) {
          String fieldName = "trimLeadingWhitespace";
          if (logger.isDebugEnabled()) {
              logger.debug("Try setting '{}' field to '{}' for '{}' by reflection.", fieldName, trimLeadingCommonSourceWhitespaces, result);
          }
          try {
              Field field = SimpleRenderer.class.getDeclaredField(fieldName);
              field.setAccessible(true);
              field.set(result, trimLeadingCommonSourceWhitespaces);
  
          } catch (Exception e) {
              if (logger.isWarnEnabled()) { // TODO test if it is really logged?
                  logger.warn(String.format("Could not set field '%s' on created SimpleRenderer by reflection due to:", fieldName), e);
              }
          }
      }
docs: Also set second field to trim leading whitespaces.
  <p/>
  <i>Information:</i> Use reflection because neither proper constructor for setting both fields nor setter are
  available.