private static @Nullable Editor getEditor(@NotNull Project project, VirtualFile file) {
    return FileEditorManager.getInstance(project).openTextEditor(new OpenFileDescriptor(project, file), true);
  }
private static @Nullable Editor getEditor(@NotNull Project project, VirtualFile file)