private static @Nullable Boolean overriddenUnresolvedReferenceInspection(@NotNull PsiFile file) {
    return PyInspectionExtension.EP_NAME.getExtensionList().stream()
      .map(e -> e.overrideUnresolvedReferenceInspection(file))
      .filter(Objects::nonNull)
      .findFirst()
      .orElse(null);
  }
private static @Nullable Boolean overriddenUnresolvedReferenceInspection(@NotNull PsiFile file)