Source:
<code>private void display(final ChangeDetail detail) { displayTitle(detail.getChange().getKey(), detail.getChange().getSubject()); if (starChange != null) { setStarred(detail.isStarred()); } if (Status.MERGED == detail.getChange().getStatus()) { includedInPanel.setVisible(true); includedInPanel.addOpenHandler(includedInTable); } else { includedInPanel.setVisible(false); } dependencies.setAccountInfoCache(detail.getAccounts()); approvals.setAccountInfoCache(detail.getAccounts()); descriptionBlock.display(detail.getChange(), detail .getCurrentPatchSetDetail().getInfo(), detail.getAccounts()); dependsOn.display(detail.getDependsOn()); neededBy.display(detail.getNeededBy()); approvals.display(detail.getChange(), detail.getMissingApprovals(), detail .getApprovals()); for (PatchSet pId : detail.getPatchSets()) { if (patchesList != null) { patchesList.addItem(Util.M.patchSetHeader(pId.getPatchSetId()), pId .getId().toString()); } } if (diffBaseId != null) { <START> if (patchesList != null) { <END> int index = -1; for (int i = 0; i < patchesList.getItemCount(); i++) { if (!patchesList.getValue(i).equals("Base")) { if (diffBaseId.equals(PatchSet.Id.parse(patchesList.getValue(i)))) { index = i; break; } } } patchesList.setSelectedIndex(index); } } patchSetsBlock.display(detail, diffBaseId); if (openPatchSetId != null) { patchSetsBlock.activate(openPatchSetId); } addComments(detail); boolean depsOpen = false; if (!detail.getChange().getStatus().isClosed() && detail.getDependsOn() != null) { for (final ChangeInfo ci : detail.getDependsOn()) { if (ci.getStatus() != Change.Status.MERGED) { depsOpen = true; break; } } } dependenciesPanel.setOpen(depsOpen); }</code><technical_language>combine conditionals one? if (diffBaseId != null && patchesList != null) {</technical_language>

Target:
private void display(final ChangeDetail detail) { displayTitle(detail.getChange().getKey(), detail.getChange().getSubject()); if (starChange != null) { setStarred(detail.isStarred()); } if (Status.MERGED == detail.getChange().getStatus()) { includedInPanel.setVisible(true); includedInPanel.addOpenHandler(includedInTable); } else { includedInPanel.setVisible(false); } dependencies.setAccountInfoCache(detail.getAccounts()); approvals.setAccountInfoCache(detail.getAccounts()); descriptionBlock.display(detail.getChange(), detail .getCurrentPatchSetDetail().getInfo(), detail.getAccounts()); dependsOn.display(detail.getDependsOn()); neededBy.display(detail.getNeededBy()); approvals.display(detail.getChange(), detail.getMissingApprovals(), detail .getApprovals()); for (PatchSet pId : detail.getPatchSets()) { if (patchesList != null) { patchesList.addItem(Util.M.patchSetHeader(pId.getPatchSetId()), pId .getId().toString()); } } if (diffBaseId != null && patchesList != null) { patchesList.setSelectedIndex(diffBaseId.get()); } patchSetsBlock.display(detail, diffBaseId); if (openPatchSetId != null) { patchSetsBlock.activate(openPatchSetId); } addComments(detail); boolean depsOpen = false; if (!detail.getChange().getStatus().isClosed() && detail.getDependsOn() != null) { for (final ChangeInfo ci : detail.getDependsOn()) { if (ci.getStatus() != Change.Status.MERGED) { depsOpen = true; break; } } } dependenciesPanel.setOpen(depsOpen); }