title: In intelliJ, how to move an method to an implementing class of an interface?
body: <p>I am using intelliJ 2016.2.1. </p>
  
  <p>I have a method <code>foo()</code> in main class Test: </p>
  
  <pre><code>class Test {
     IService iService;
  
     foo(){...}
  
  }
  </code></pre>
  
  <p><code>IService</code> is an interface, it has one implementing class <code>ServiceImpl</code>.
  When I put caret on <code>foo</code>, and select move, intelliJ only allows me to select <code>IService</code>. But I actually want <code>ServiceImpl</code> as move destination.</p>
  
  <p>And if I continue the move, intelliJ will put the method implementation inside the interface <code>IService</code>. But I want to have an declaration there.</p>
  
  <hr>
  
  <p><strong>Question</strong>: How do I refactor foo(), to move its method implementation into ServiceImpl, and method declaration in IService?</p>