code: public static boolean isVisible( FeatureDescriptor descriptor, IScriptabilityModifier constraint )
    {
      if( constraint == null )
      {
        return true;
      }
  
      IScriptabilityModifier modifier = getVisibilityModifier( descriptor );
      if( modifier == null )
      {
        return true;
      }
  
      return modifier.satisfiesConstraint( constraint );
    }
docs: Determine if the descriptor is visible given a visibility constraint.