void (@NotNull final PresentationData presentation) { ApplicationManager.getApplication().runReadAction(() -> { final Object object = getValue(); if (object instanceof PsiNamedElement value) { if (value instanceof PsiQualifiedNamedElement && (myStateBean.isFlattenPackages() && value.getContainingFile() == null || getParent() instanceof CoverageListRootNode)) { presentation.setPresentableText(((PsiQualifiedNamedElement)value).getQualifiedName()); } else { presentation.setPresentableText(value.getName()); } presentation.setIcon(value.getIcon(0)); presentation.setForcedTextForeground(getFileStatus().getColor()); } }); }