TextRange (ASTNode node, final TextRange textRange, final int shift) { if (node != null && node.getTextRange().equals(textRange) && ShiftIndentInsideHelper.mayShiftIndentInside(node)) { PsiFile file = node.getPsi().getContainingFile(); return new ShiftIndentInsideHelper(file).shiftIndentInside(node, shift).getTextRange(); } else { return textRange; } }