PyFunction (@NotNull String qname, @NotNull Project project) { final QualifiedName qualifiedName = QualifiedName.fromDottedString(qname); final Collection<PyFunction> shortNameMatches = PyFunctionNameIndex.find(qualifiedName.getLastComponent(), project); return ContainerUtil.find(shortNameMatches, func -> qname.equals(func.getQualifiedName())); }