void () { if (isDisposed()) return; LargeFileEditorAccess largeFileEditorAccess = LargeFileEditorAccessor.getAccess(myStatusBar); myActionEnabled = false; @NlsSafe String charsetName; String toolTipText; var myComponent = this.myComponent.get(); if (largeFileEditorAccess == null) { toolTipText = ""; charsetName = ""; myComponent.setVisible(false); } else { myActionEnabled = true; charsetName = largeFileEditorAccess.getCharsetName(); toolTipText = EditorBundle.message("large.file.editor.tooltip.file.encoding.is.some", charsetName); myComponent.setVisible(true); } myComponent.setToolTipText(toolTipText); myComponent.setText(charsetName); if (myStatusBar != null) { myStatusBar.updateWidget(ID()); } else { logger.warn("[LargeFileEditorSubsystem] LargeFileEncodingWidget.requestUpdate(): myStatusBar is null!!!)"); } }