int (PsiExpressionList argumentList, PsiElement argument) { final PsiExpression[] expressions = argumentList.getExpressions(); int index = -1; for (PsiExpression expression : expressions) { index++; if (expression.equals(argument)) { break; } } return index; }