@staticmethod
    def new_platform():
        # If we haven't initialized the platforms array, then do so.
        if not PlatformController.__platforms_registered__:
            PlatformController.__register_supported_platforms()

        for platform_class in PlatformController.__platform_classes__:
            result = platform_class()
            if result.can_handle_current_platform():
                return result
        return None
Returns an instance of the first previously registered platform classes that can handle the server this
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/platform_controller.py/PlatformController.new_platform