String (@NotNull PyStatementList anchor) { final String indentStep = getIndentFromSettings(anchor.getContainingFile()); final PyStatementList parentBlock = PsiTreeUtil.getParentOfType(anchor, PyStatementList.class, true); if (parentBlock != null) { return getElementIndent(parentBlock) + indentStep; } return indentStep; }