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