void (@NotNull Change change, @NotNull SimpleColoredComponent component, boolean isShowFlatten) { if (change instanceof AbstractFilePatchInProgress.PatchChange patchChange) { final AbstractFilePatchInProgress patchInProgress = patchChange.getPatchInProgress(); if (patchInProgress.getCurrentStrip() > 0) { component.append(VcsBundle.message("patch.apply.stripped.description", patchInProgress.getCurrentStrip()), SimpleTextAttributes.GRAY_ITALIC_ATTRIBUTES); } final String text; if (FilePatchStatus.ADDED.equals(patchInProgress.getStatus())) { text = VcsBundle.message("patch.apply.added.status"); } else if (FilePatchStatus.DELETED.equals(patchInProgress.getStatus())) { text = VcsBundle.message("patch.apply.deleted.status"); } else { text = VcsBundle.message("patch.apply.modified.status"); } component.append(" "); component.append(text, SimpleTextAttributes.GRAY_ATTRIBUTES); if (!patchInProgress.baseExistsOrAdded()) { component.append(" "); component.append(VcsBundle.message("patch.apply.select.missing.base.link"), SimpleTextAttributes.LINK_PLAIN_ATTRIBUTES, (Runnable)myChangesTreeList::handleInvalidChangesAndToggle); } else { if (!patchInProgress.getStatus().equals(FilePatchStatus.ADDED) && basePathWasChanged(patchInProgress)) { component.append(" "); component .append(VcsBundle.message("patch.apply.new.base.detected.node.description"), SimpleTextAttributes.GRAYED_ITALIC_ATTRIBUTES); component.setToolTipText(VcsBundle.message("patch.apply.old.new.base.info", patchInProgress.getOriginalBeforePath(), myProject.getBasePath(), patchInProgress.getPatch().getBeforeName(), patchInProgress.getBase().getPath())); } } } }