GroovyPsiElement (@NotNull CreateParameterInfoContext context) { GroovyPsiElement place = findAnchorElement(context.getEditor().getCaretModel().getOffset(), context.getFile()); if (place == null) { return null; } final List<Object> itemsToShow = collectParameterInfo(place); context.setItemsToShow(ArrayUtil.toObjectArray(itemsToShow)); return place; }