else if (documentationSettings.isReSTFormat(element.getContainingFile()))
result += generateContent(element, offset, RST_PREFIX, checkReturn);
else
result += offset;
return result;
<BUG>}
public String generateDocumentationContentStub(PyFunction element, boolean checkReturn) {</BUG>
PsiWhiteSpace whitespace = PsiTreeUtil.getPrevSiblingOfType(element.getStatementList(), PsiWhiteSpace.class);
String ws = "\n";
if (whitespace != null) {

else if (documentationSettings.isReSTFormat(element.getContainingFile()))
result += generateContent(element, offset, RST_PREFIX, checkReturn);
else
result += offset;
return result;
}
public static void inserDocStub(PyFunction function, Project project, Editor editor) {
PyElementGenerator elementGenerator = PyElementGenerator.getInstance(project);
PyStatementList list = function.getStatementList();
PsiWhiteSpace whitespace = PsiTreeUtil.getPrevSiblingOfType(list, PsiWhiteSpace.class);
String ws = "\n";
if (whitespace != null) {
