private boolean isPrettyPrintingEnabled(){
  return flags.contains(WriterFlags.PRETTY_PRINT) && !currentElement().unformattedChildren;
}

private boolean isPrettyPrintingEnabled ( ) { return flags . contains ( WriterFlags . PRETTY_PRINT ) && ! currentElement ( ) . unformattedChildren ; }
returns true if the feature is enabled and if the current element does not contain unformatted children .
