private static int getSoleIndent(@NotNull ChangeIndentContext context) {
    PsiElement element = context.file.findElementAt(context.editor.getCaretModel().getOffset());

    int prevLine = context.targetLine - 1;
    while (prevLine >= 0 && DocumentUtil.isLineEmpty(context.document, prevLine)) {
      prevLine--;
    }

    if (prevLine < 0) {
      return -1;
    }

    int indent = getLineIndent(context, prevLine);
    int newIndent = -1;
    if (isLineStartsWithCompoundStatement(context, prevLine)) {
      newIndent = indent + context.getIndentOptions().INDENT_SIZE;
    }
    else if (PsiTreeUtil.getParentOfType(element, PySequenceExpression.class) != null && indent == 0) {
      newIndent = context.getIndentOptions().INDENT_SIZE;
    }
    else {
      if (indent < getLineIndent(context, context.targetLine)) {
        newIndent = indent;
      }
    }
    return newIndent;
  }
private static int getSoleIndent(@NotNull ChangeIndentContext context)