void () { // check for null since can be called from constructor before field initialization //noinspection ConstantConditions if (myWarningLabel != null) { myWarningLabel.setVisible(false); VcsException updateException = ChangeListManagerImpl.getInstanceImpl(myProject).getUpdateException(); if (updateException != null) { String[] messages = updateException.getMessages(); if (!isEmpty(messages)) { String message = message("changes.warning.not.all.local.changes.may.be.shown.due.to.an.error", messages[0]); String htmlMessage = buildHtml(getCssFontDeclaration(StartupUiUtil.getLabelFont()), getHtmlBody(escapeXmlEntities(message))); myWarningLabel.setText(htmlMessage); myWarningLabel.setVisible(true); } } } }