title: 'setHasOptionsMenu(Boolean): Unit' is deprecated. Deprecated in Java
body: <p>How do I declare a menu inside of Android fragment? The method that I had used previously is now deprecated.</p>
  <p><strong>Originally:</strong></p>
  <pre class="lang-kotlin prettyprint-override"><code>    override fun onCreateView(...): View {
          setHasOptionsMenu(true)
      }
  </code></pre>
  <pre class="lang-kotlin prettyprint-override"><code> override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
          super.onCreateOptionsMenu(menu, inflater)
          this.menu = menu
          inflater.inflate(R.menu.menu, this.menu)
      }
  </code></pre>