title: Netbeans - refactor anonymous class to seperate file
body: <p>In Netbeans 8.1 in the Java code I have an anononymous inner class that I want to refactor to a named ("normal") class and into a separate file. <strong>How can I do this?</strong> </p>
  
  <p>When I do <strong>Convert Anonymous to Member</strong> it converts the anonymous class to a member class withing the current .java file. </p>
  
  <p><a href="https://i.stack.imgur.com/ic5dM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ic5dM.jpg" alt="Convert anonymous to member"></a></p>
  
  <p><a href="https://i.stack.imgur.com/H9Jr9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H9Jr9.jpg" alt="enter image description here"></a>
  How do I move this now to a separate file? I can do this of course manually but I would like to do it using the IDE.</p>