- * Instead of directly using this value, EditorUtil.getSoftWrapCountAfterLogicalLineStart(LogicalPosition) method can be used,
+ * Instead of directly using this value, EditorUtil.getSoftWrapCountAfterLineStart(Editor, LogicalPosition) method can be used,
* it will work regardless of whether current LogicalPosition instance is {@link #visualPositionAware}.
*
* @see #visualPositionAware
diff --git a/platform/lang-impl/src/com/intellij/formatting/FormatProcessor.java b/platform/lang-impl/src/com/intellij/formatting/FormatProcessor.java
index cc076c5d1708..d8cdaebbdc6d 100644
--- a/platform/lang-impl/src/com/intellij/formatting/FormatProcessor.java
+++ b/platform/lang-impl/src/com/intellij/formatting/FormatProcessor.java
@@ -345,17 +345,15 @@ public class FormatProcessor {
}
/**
- * Decides whether applying formatter changes should be applied incrementally one-by-one or merge result should be
- * constructed locally and the whole document text should be replaced. Performs such single bulk change if necessary.
+ * Performs formatter changes in a series of blocks, for each block a new contents of document is calculated
+ * and whole document is replaced in one operation.
*
* @param blocksToModify changes introduced by formatter
* @param model current formatting model
* @param indentOption indent options to use
- * @return true if given changes are applied to the document (i.e. no further processing is required);
- * false otherwise
*/
@SuppressWarnings({"deprecation"})
- private boolean applyChangesAtRewriteMode(@NotNull final List