def METHOD_NAME(className):
    print("")
    print("++++ Validating process : " + className)
    with open(className, "r", encoding="utf-8") as file:
        data = file.read()
        data = data[data.find("::ProcessEvent") :]
        data = removeCppComment(data)
        data = getMethodDefinition(data)
        # data = removeCppComment(data)
        # we shall find only "return fXXXEvent" and "return nullptr"
        # other cases might be for example lambda func
        returnPos = 0
        while returnPos < len(data):
            returnPos = data.find("RETURN ", returnPos)
            if (
                data.find("EVENT", returnPos) - returnPos > 25
                or data.find("EVENT", returnPos) == -1
            ):
                returnPos = returnPos + 6
            else:
                break
            if (
                data.find("NULL", returnPos) - returnPos > 25
                or data.find("NULL", returnPos) == -1
            ):
                returnPos = returnPos + 6
            else:
                break
        print(returnPos)
        map = getObservablePositions(data)
        if returnPos != -1:
            for i in map:
                iObsPos = map[i]
                if iObsPos > returnPos:
                    print(
                        " - Process is likely to be returned before SetObservableValue!!"
                    )
                    print(" - FILE : " + className)
                    sys.exit(1)
    print("OK")
    return