boolean (@NotNull ChangeIndentContext context, int line) { PsiElement element = context.file.findElementAt(context.document.getLineStartOffset(line) + getLineIndent(context, line)); if (element == null) { return false; } ASTNode node = element.getNode(); if (node == null) { return false; } return COMPOUND_STATEMENT_TYPES.contains(node.getElementType()); }