code: protected static boolean __has_identifier(ByteBuffer bb, String ident) {
      if (ident.length() != FILE_IDENTIFIER_LENGTH)
          throw new AssertionError("FlatBuffers: file identifier must be length " +
                                   FILE_IDENTIFIER_LENGTH);
      for (int i = 0; i < FILE_IDENTIFIER_LENGTH; i++) {
        if (ident.charAt(i) != (char)bb.get(bb.position() + SIZEOF_INT + i)) return false;
      }
      return true;
    }
docs: Check if a {@link ByteBuffer} contains a file identifier.
  
  @param bb A {@code ByteBuffer} to check if it contains the identifier
  `ident`.
  @param ident A `String` identifier of the FlatBuffer file.
  @return True if the buffer contains the file identifier