boolean (@NotNull Charset charset) { LargeFileEditorAccess largeFileEditorAccess = LargeFileEditorAccessor.getAccess(statusBar); if (largeFileEditorAccess == null) { logger.warn("tried to change encoding while editor is not accessible"); return false; } boolean result = largeFileEditorAccess.tryChangeEncoding(charset); updateWidget(); return result; }