title: How to know if code inside a method has multiple "return" statements with patterns in ReSharper?
body: <p>I have this code:</p>
  
  <pre><code>        public int GetNumber()
      {
          if (Foo() &gt; 8)
          {
              return 10;
          }
  
          if (Foo() == 4)
          {
              return 0;
          }
          if (Foo() == 3)
          {
              return 1;
          }
  
          return 10;
      }
  </code></pre>
  
  <p>And I would like to use patterns with ReSharper to verify if my method has multuple "return" statements and display a suggestion, and if I have this method:</p>
  
  <pre><code>    public int GetNumber2()
      {
          var result = 0;
  
          if (Foo() &gt; 8)
          {
              result = 10;
          }
  
          if (Foo() == 4)
          {
              result = 0;
          }
          if (Foo() == 3)
          {
              result = 1;
          }
  
          return result;
      }
  </code></pre>
  
  <p>The suggestion won't be displayed.</p>