public static @Nullable LargeFileEditorAccess getAccess(@Nullable StatusBar statusBar) {
    if (statusBar == null || statusBar.getProject() == null || statusBar.getProject().isDisposed()) return null;

    FileEditor fileEditor = StatusBarUtil.getCurrentFileEditor(statusBar);
    return fileEditor instanceof LargeFileEditor ? ((LargeFileEditor)fileEditor).createAccessForEncodingWidget() : null;
  }
public static @Nullable LargeFileEditorAccess getAccess(@Nullable StatusBar statusBar)