public List<TextRange> select(PsiElement e, CharSequence editorText, int cursorOffset, Editor editor) {
List<TextRange> select = super.select(e, editorText, cursorOffset, editor);
PsiElement clause = e.getParent();
if (clause instanceof ErlangClauseBody) {
List<ErlangExpression> list = ((ErlangClauseBody) clause).getExpressionList();
ErlangExpression first = ContainerUtil.getFirstItem(list);
ErlangExpression last = ContainerUtil.getLastItem(list);
if (first != null && last != null) {
TextRange allExpressionsRange = TextRange.create(first.getTextRange().getStartOffset(), last.getTextRange().getEndOffset());
return ContainerUtil.concat(select, expandToWholeLine(editorText, allExpressionsRange, false));
}
}
return select;
}