Netbeans refactoring