private Promise<Void> select(@NotNull FileEditor editor) {
      VirtualFile virtualFile = editor.getFile();
      if (virtualFile == null) {
        return Promises.rejectedPromise("Virtual file is null");
      }
      return ((ServiceViewManagerImpl)ServiceViewManager.getInstance(myProject)).select(virtualFile);
    }
private Promise<Void> select(@NotNull FileEditor editor)