Collector (int offset, @NotNull PsiFile file) { final PyParameterInfoHandler handler = new PyParameterInfoHandler(); final Collector collector = new Collector(file, offset); collector.setParameterOwner(handler.findElementForParameterInfo(collector)); if (collector.getParameterOwner() != null) { handler.updateParameterInfo((PyArgumentList)collector.getParameterOwner(), collector); for (Object itemToShow : collector.getItemsToShow()) { //noinspection unchecked handler.updateUI((Pair<PyCallExpression, PyCallableType>)itemToShow, collector); } } return collector; }