code: private boolean hasModifierNamed( String modifierName ) {
          for (ModifierMetadata modifier : modifiers) {
              if (modifierName.equalsIgnoreCase(modifier.getName())) {
                  return true;
              }
          }
  
          return false;
  
      }
docs: Checks if a modifier with the given name is found among this method's identifiers.
  
  @param modifierName the name of the modifier to check for
  @return true if the type has a modifier of that name, otherwise false