boolean (@Nullable Object o, ProcessingContext context) { return StreamEx .of(multiResolveCalledFunction(o, functionName, index)) .select(PyFunction.class) .map(ScopeUtil::getScopeOwner) .select(PyClass.class) .anyMatch(cls -> classQualifiedName.equals(cls.getQualifiedName())); }