title: Preventing protocol methods from showing up twice in autocomplete
body: <p>This is more of an annoyance and cosmetic issue than anything else, but there are some consistency issues with autocomplete in Xcode, and I'd very much appreciate if somebody has a solution for it.</p>
  
  <hr>
  
  <p>Consider a protocol <code>MyProtocol</code>, which has a property and a method:</p>
  
  <pre><code>public protocol MyProtocol {
      var variable: String { get }
      func method()
  }
  </code></pre>
  
  <p>And a class <code>A</code> which adopts <code>MyProtocol</code> and implements the requirements in order to conform to the protocol:</p>
  
  <pre><code>public class A { ... }
  
  extension A: MyProtocol {
      public var variable: String { get { return "String from A." } }
  
      public func method() {
          print("Method called.")
      }
  }
  </code></pre>
  
  <p><strong>The problem:</strong></p>
  
  <p>When accessing the members of an instance of <code>A</code>, protocol methods show up twice, whereas properties only show up once:</p>
  
  <p><a href="https://i.stack.imgur.com/DynTG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DynTG.png" alt=""></a></p>
  
  <p>If everything is documented in code, it becomes clear that the protocol properties become hidden, while protocol methods remain visible in autocomplete. The same applies for default implementations of protocol methods - still visible.</p>
  
  <p>Another thing that makes this issue even more peculiar is that if an instance of e.g. <code>A</code> is created in the same file where the class is declared, and that instance's members are accessed within the same file as well, then the protocol method disappears from autocomplete:</p>
  
  <p><a href="https://i.stack.imgur.com/06b5f.png" rel="noreferrer"><img src="https://i.stack.imgur.com/06b5f.png" alt=""></a></p>
  
  <p>But, if the same instance (which is now on the global scope) is called from another file, the protocol method reappears in autocomplete.</p>
  
  <p>So, my question is: does anybody know how to hide the duplicate protocol methods from autocomplete?</p>
  
  <hr>
  
  <p><em>Versions:</em></p>
  
  <p><code>Xcode: 7.3 (7D175)</code></p>
  
  <p><code>Swift: 2.2</code></p>