DebuggerCommandImpl (final DebuggerTreeNodeImpl node) { if (node.getDescriptor() instanceof ThreadDescriptorImpl) { return new BuildThreadCommand(node); } else if (node.getDescriptor() instanceof ThreadGroupDescriptorImpl) { return new BuildThreadGroupCommand(node); } LOG.assertTrue(false); return null; }