void (@NotNull PresentationData presentation) { CertificateWrapper wrapper = getElement(); SimpleTextAttributes attr = wrapper.isValid() ? SimpleTextAttributes.REGULAR_ATTRIBUTES : STRIKEOUT_ATTRIBUTES; presentation.addText(wrapper.getSubjectField(COMMON_NAME), attr); }