private static @Nullable VirtualFile getSelectedFile(@Nullable Project project) {
    if (LightEdit.owns(project)) {
      return ArrayUtil.getFirstElement(FileEditorManager.getInstance(project).getSelectedFiles());
    }
    return null;
  }
private static @Nullable VirtualFile getSelectedFile(@Nullable Project project)