int (Request request, int symbolsToSkip) { int leftLineStartOffset = getLeftLineStartOffset(request); final int margin = CodeStyle.getSettings(request.leftElem.getContainingFile()).getRightMargin(PythonLanguage.getInstance()); int leftLineLength = request.document.getLineEndOffset(request.document.getLineNumber(leftLineStartOffset)) - leftLineStartOffset; return margin - leftLineLength - symbolsToSkip; }