Source:
<code><START> public AccountsBrowser(RelationshipBrowser relationshipBrowser) { <END> this.relationshipBrowser = relationshipBrowser; initComponents(); outline = outlineView.getOutline(); outlineView.setPropertyColumns( "device", Bundle.AccountNode_device(), "type", Bundle.AccountNode_accountType(), "count", Bundle.AccountNode_messageCount() ); outline.setRootVisible(false); ((DefaultOutlineModel) outline.getOutlineModel()).setNodesColumnLabel(Bundle.AccountNode_accountName()); outline.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); outline.setColumnSorted(3, false, 1); accountsTableEM.addPropertyChangeListener(evt -> { if (ExplorerManager.PROP_ROOT_CONTEXT.equals(evt.getPropertyName())) { SwingUtilities.invokeLater(this::setColumnWidths); } else if (ExplorerManager.PROP_EXPLORED_CONTEXT.equals(evt.getPropertyName())) { SwingUtilities.invokeLater(this::setColumnWidths); } else if (evt.getPropertyName().equals(ExplorerManager.PROP_SELECTED_NODES)) { final Node[] selectedNodes = accountsTableEM.getSelectedNodes(); final Set<AccountDeviceInstance> accountDeviceInstances = new HashSet<>(); CommunicationsFilter filter = null; for (final Node node : selectedNodes) { accountDeviceInstances.add(((AccountDeviceInstanceNode) node).getAccountDeviceInstance()); filter = ((AccountDeviceInstanceNode)node).getFilter(); } relationshipBrowser.setSelectionInfo(new SelectionInfo(accountDeviceInstances, new HashSet<>(), filter)); } }); proxyLookup = new ProxyLookup(relationshipBrowser.getLookup(), ExplorerUtils.createLookup(accountsTableEM, getActionMap())); }</code><technical_language>repeat codacy this Relationship browser argument, class variable, import removed unused</technical_language>

Target:
public AccountsBrowser(RelationshipBrowser relationshipBrowser) { initComponents(); outline = outlineView.getOutline(); outlineView.setPropertyColumns( "device", Bundle.AccountNode_device(), "type", Bundle.AccountNode_accountType(), "count", Bundle.AccountNode_messageCount() ); outline.setRootVisible(false); ((DefaultOutlineModel) outline.getOutlineModel()).setNodesColumnLabel(Bundle.AccountNode_accountName()); outline.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); outline.setColumnSorted(3, false, 1); accountsTableEM.addPropertyChangeListener(evt -> { if (ExplorerManager.PROP_ROOT_CONTEXT.equals(evt.getPropertyName())) { SwingUtilities.invokeLater(this::setColumnWidths); } else if (ExplorerManager.PROP_EXPLORED_CONTEXT.equals(evt.getPropertyName())) { SwingUtilities.invokeLater(this::setColumnWidths); } else if (evt.getPropertyName().equals(ExplorerManager.PROP_SELECTED_NODES)) { final Node[] selectedNodes = accountsTableEM.getSelectedNodes(); final Set<AccountDeviceInstance> accountDeviceInstances = new HashSet<>(); CommunicationsFilter filter = null; for (final Node node : selectedNodes) { accountDeviceInstances.add(((AccountDeviceInstanceNode) node).getAccountDeviceInstance()); filter = ((AccountDeviceInstanceNode)node).getFilter(); } relationshipBrowser.setSelectionInfo(new SelectionInfo(accountDeviceInstances, new HashSet<>(), filter)); } }); proxyLookup = new ProxyLookup(relationshipBrowser.getLookup(), ExplorerUtils.createLookup(accountsTableEM, getActionMap())); }