def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("ParentImage", default="").endswith("\\java.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\javaw.exe"),
                ]
            ),
            "SysAidServer" in event.deep_get("ParentCommandLine", default=""),
        ]
    ):
        return True
    return False
