boolean (@Nullable Object o, ProcessingContext context) { return StreamEx .of(multiResolveCalledFunction(o, functionName, index)) .select(PyFunction.class) .map(ScopeUtil::getScopeOwner) .select(PyFile.class) .anyMatch(file -> moduleName.equals(FileUtilRt.getNameWithoutExtension(file.getName()))); }