HTMLEditorKit (boolean noGapsBetweenParagraphs) { HTMLEditorKitBuilder builder = new HTMLEditorKitBuilder(); if (!noGapsBetweenParagraphs) { builder.withGapsBetweenParagraphs(); } return builder.build(); }