boolean () { if (myUseNewRendering || mySettings.isUseSoftWraps() || // Disable checking for files in intermediate states - e.g. for files during refactoring. myProject != null && PsiDocumentManager.getInstance(myProject).isDocumentBlockedByPsi(myDocument)) { return false; } int lineWidthLimit = Registry.intValue("editor.soft.wrap.force.limit"); for (int i = 0; i < myDocument.getLineCount(); i++) { if (myDocument.getLineEndOffset(i) - myDocument.getLineStartOffset(i) > lineWidthLimit) { return true; } } return false; }