PsiElement (@NotNull String fqn, @NotNull Project project) { final PyClass aClass = PyClassNameIndex.findClass(fqn, project); if (aClass != null) { return aClass; } final PyFunction func = findFunctionByQualifiedName(fqn, project); if (func != null) { return func; } return null; }