how to check navigation static flags in editor

Just as the title says - I’m writing an editor script and need to check if objects are set to “Navigation Static” or not.

I’ve gotten this far:
var flags = GameObjectUtility.GetStaticEditorFlags(go);

But I can’t find anything about how to check the state of individual flags.

Thanks!

I know this is an insanely old question but this answer is for others out there looking for it.
Basically after obtaining the editor flags variable with GameObjectUtility.GetEditorFlags, you can check if that variable has a flag with HasFlag.
Example:

StaticEditorFlags editorFlags = GameObjectUtility.GetStaticEditorFlags(go);
if (editorFlags.HasFlag(StaticEditorFlags.NavigationStatic))
{
                        
}