void (@NotNull PyArgumentList argumentList, @NotNull UpdateParameterInfoContext context) { final int allegedCursorOffset = context.getOffset(); // this is already shifted backwards to skip spaces if (!argumentList.getTextRange().contains(allegedCursorOffset) && argumentList.getText().endsWith(")")) { context.removeHint(); return; } final PsiFile file = context.getFile(); int offset = PyParameterInfoUtils.findCurrentParameter(argumentList, allegedCursorOffset, file); context.setCurrentParameter(offset); }