@Nullable
  private static QualifiedName findQualifiedNameInClosestRoot(@NotNull VirtualFile file, @NotNull Project project) {
    // TODO Come up with a better API for exposing these internals
    Ref<QualifiedName> result = Ref.create();
    //noinspection ResultOfMethodCallIgnored
    new QualifiedNameFinder.QualifiedNameBasedScope(project) {
      @Override
      protected boolean containsQualifiedNameInRoot(@NotNull VirtualFile root, @NotNull QualifiedName qName) {
        result.set(qName);
        return true;
      }
    }.contains(file);
    return result.get();
  }
@Nullable
  private static QualifiedName findQualifiedNameInClosestRoot(@NotNull VirtualFile file, @NotNull Project project)