try {
int offset = PySelection.getAbsoluteCursorOffset(document, callNode.func.beginLine - 1,
callNode.func.beginColumn - 1); //-1: from ast to document coords
int openParensPos = parsingUtils.findNextChar(offset, '(');
if (openParensPos != -1) {
int closeParensPos = parsingUtils.eatPar(openParensPos, null);
if (closeParensPos != -1) {
int startLine = PySelection.getLineOfOffset(document, openParensPos) + 1; //+1: from document to ast
int endLine = PySelection.getLineOfOffset(document, closeParensPos) + 1;
int startCol = openParensPos - document.getLineInformationOfOffset(openParensPos).getOffset() + 1;