boolean (final boolean inText, final boolean forceKeepLineBreaks) { if (forceKeepLineBreaks) { return true; } if (inText && myXmlFormattingPolicy.getShouldKeepLineBreaksInText()) { return true; } if (!inText && myXmlFormattingPolicy.getShouldKeepLineBreaks()) { return true; } return false; }