()
+ .firstOrNull()
+ }
+
@JvmStatic
private fun possibleFunction(qualifiedName: String, element: PsiElement): PyFunction? {
// TODO a better, more general way to resolve qualified names of function
diff --git a/python/testData/quickdoc/ArgumentList.html b/python/testData/quickdoc/ArgumentList.html
index 0cab4184ae8d..9da52ac20344 100644
--- a/python/testData/quickdoc/ArgumentList.html
+++ b/python/testData/quickdoc/ArgumentList.html
@@ -1 +1 @@
-Doc of foo.
\ No newline at end of file
+Doc of foo.
\ No newline at end of file
diff --git a/python/testData/quickdoc/BuiltinLen.html b/python/testData/quickdoc/BuiltinLen.html
index 1d9e08d99275..c7630466e143 100644
--- a/python/testData/quickdoc/BuiltinLen.html
+++ b/python/testData/quickdoc/BuiltinLen.html
@@ -1 +1 @@
-len(object) -> integer
Return the number of items of a sequence or collection.
\ No newline at end of file
+len(object) -> integer
Return the number of items of a sequence or collection.
\ No newline at end of file
diff --git a/python/testData/quickdoc/CallFunc.html b/python/testData/quickdoc/CallFunc.html
index 0cab4184ae8d..0015974164f8 100644
--- a/python/testData/quickdoc/CallFunc.html
+++ b/python/testData/quickdoc/CallFunc.html
@@ -1 +1 @@
-Doc of foo.
\ No newline at end of file
+Doc of foo.
\ No newline at end of file
diff --git a/python/testData/quickdoc/ClassConstructor.html b/python/testData/quickdoc/ClassConstructor.html
index 0328d0789102..bff1f2803de5 100644
--- a/python/testData/quickdoc/ClassConstructor.html
+++ b/python/testData/quickdoc/ClassConstructor.html
@@ -1 +1 @@
-Doc of Foo.
\ No newline at end of file
+Doc of Foo.
\ No newline at end of file
diff --git a/python/testData/quickdoc/ClassWithAllKindSuperClassExpressions.html b/python/testData/quickdoc/ClassWithAllKindSuperClassExpressions.html
index f97619dbbb65..ac6fd2d6d566 100644
--- a/python/testData/quickdoc/ClassWithAllKindSuperClassExpressions.html
+++ b/python/testData/quickdoc/ClassWithAllKindSuperClassExpressions.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/python/testData/quickdoc/DirectClass.html b/python/testData/quickdoc/DirectClass.html
index 0328d0789102..f3eb028be433 100644
--- a/python/testData/quickdoc/DirectClass.html
+++ b/python/testData/quickdoc/DirectClass.html
@@ -1 +1 @@
-Doc of Foo.
\ No newline at end of file
+Doc of Foo.
\ No newline at end of file
diff --git a/python/testData/quickdoc/DirectFunc.html b/python/testData/quickdoc/DirectFunc.html
index 0cab4184ae8d..19199851b3c8 100644
--- a/python/testData/quickdoc/DirectFunc.html
+++ b/python/testData/quickdoc/DirectFunc.html
@@ -1 +1 @@
-Doc of foo.
\ No newline at end of file
+Doc of foo.
\ No newline at end of file
diff --git a/python/testData/quickdoc/DocOnImplementationWithOverloads.html b/python/testData/quickdoc/DocOnImplementationWithOverloads.html
index 54f92d4102e9..83a059288f6b 100644
--- a/python/testData/quickdoc/DocOnImplementationWithOverloads.html
+++ b/python/testData/quickdoc/DocOnImplementationWithOverloads.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/python/testData/quickdoc/Docstring.html b/python/testData/quickdoc/Docstring.html
index 0cab4184ae8d..434246889527 100644
--- a/python/testData/quickdoc/Docstring.html
+++ b/python/testData/quickdoc/Docstring.html
@@ -1 +1 @@
-Doc of foo.
\ No newline at end of file
+Doc of foo.
\ No newline at end of file
diff --git a/python/testData/quickdoc/EmptyTupleType.html b/python/testData/quickdoc/EmptyTupleType.html
index bfa7591fa97f..9038ecf00d4e 100644
--- a/python/testData/quickdoc/EmptyTupleType.html
+++ b/python/testData/quickdoc/EmptyTupleType.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/python/testData/quickdoc/HeterogeneousTuple.html b/python/testData/quickdoc/HeterogeneousTuple.html
index cd610f2d59ac..a64e2246e222 100644
--- a/python/testData/quickdoc/HeterogeneousTuple.html
+++ b/python/testData/quickdoc/HeterogeneousTuple.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/python/testData/quickdoc/HomogeneousTuple.html b/python/testData/quickdoc/HomogeneousTuple.html
index 942809d9eba8..f09f9ae6b84a 100644
--- a/python/testData/quickdoc/HomogeneousTuple.html
+++ b/python/testData/quickdoc/HomogeneousTuple.html
@@ -1 +1 @@
-def get_tuple() -> Tuple[str, ...]
\ No newline at end of file
+
\ No newline at end of file
diff --git a/python/testData/quickdoc/Indented.html b/python/testData/quickdoc/Indented.html
index 3e019e5b9629..de9f0074b45d 100644
--- a/python/testData/quickdoc/Indented.html
+++ b/python/testData/quickdoc/Indented.html
@@ -1 +1 @@
-Doc of foo.
It has two lines.
\ No newline at end of file
+Doc of foo.
It has two lines.
\ No newline at end of file
diff --git a/python/testData/quickdoc/ManyDecoratorsClass.html b/python/testData/quickdoc/ManyDecoratorsClass.html
index 0b53ad3847b4..734a3ef14b70 100644
--- a/python/testData/quickdoc/ManyDecoratorsClass.html
+++ b/python/testData/quickdoc/ManyDecoratorsClass.html
@@ -1 +1 @@
-@decorator1
@decorator2
class A
Doc of A
\ No newline at end of file
+Doc of A
\ No newline at end of file
diff --git a/python/testData/quickdoc/ManyDecoratorsFunction.html b/python/testData/quickdoc/ManyDecoratorsFunction.html
index 2c24aedab6bf..0def677c737d 100644
--- a/python/testData/quickdoc/ManyDecoratorsFunction.html
+++ b/python/testData/quickdoc/ManyDecoratorsFunction.html
@@ -1 +1 @@
-@decorator1
@decorator2
def foo(param: Any) -> Optional[Any]
\ No newline at end of file
+
\ No newline at end of file
diff --git a/python/testData/quickdoc/MultilineAssignedValueForTarget.html b/python/testData/quickdoc/MultilineAssignedValueForTarget.html
index 60bdfc08b7bd..87289da3d7a1 100644
--- a/python/testData/quickdoc/MultilineAssignedValueForTarget.html
+++ b/python/testData/quickdoc/MultilineAssignedValueForTarget.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/python/testData/quickdoc/OneDecoratorClass.html b/python/testData/quickdoc/OneDecoratorClass.html
index 473d009fa9b6..8a409b28d88b 100644
--- a/python/testData/quickdoc/OneDecoratorClass.html
+++ b/python/testData/quickdoc/OneDecoratorClass.html
@@ -1 +1 @@
-Doc of A
\ No newline at end of file
+Doc of A
\ No newline at end of file
diff --git a/python/testData/quickdoc/OneDecoratorFunction.html b/python/testData/quickdoc/OneDecoratorFunction.html
index e80a94e55a00..4a8bbc472700 100644
--- a/python/testData/quickdoc/OneDecoratorFunction.html
+++ b/python/testData/quickdoc/OneDecoratorFunction.html
@@ -1 +1 @@
-@decorator
def foo(param: Any) -> Optional[Any]
\ No newline at end of file
+
\ No newline at end of file
diff --git a/python/testData/quickdoc/OptionalAndUnionTypesContainingTypeVars.html b/python/testData/quickdoc/OptionalAndUnionTypesContainingTypeVars.html
index d32cc0ade4e8..66b6ffd68a28 100644
--- a/python/testData/quickdoc/OptionalAndUnionTypesContainingTypeVars.html
+++ b/python/testData/quickdoc/OptionalAndUnionTypesContainingTypeVars.html
@@ -1 +1 @@
-def f(x1: Optional[T], x2: Union[T, Tuple[Any, Any]]) -> None
\ No newline at end of file
+
\ No newline at end of file
diff --git a/python/testData/quickdoc/OptionalParameterType.html b/python/testData/quickdoc/OptionalParameterType.html
index fc10aa66d8ac..36f45d777cce 100644
--- a/python/testData/quickdoc/OptionalParameterType.html
+++ b/python/testData/quickdoc/OptionalParameterType.html
@@ -1 +1 @@
-def open(encoding: Optional[str], errors: Optional[str]) -> None
\ No newline at end of file
+
\ No newline at end of file
diff --git a/python/testData/quickdoc/Overloads.html b/python/testData/quickdoc/Overloads.html
index 21f42bcbf063..6c7398e1ea7b 100644
--- a/python/testData/quickdoc/Overloads.html
+++ b/python/testData/quickdoc/Overloads.html
@@ -1 +1 @@
-@typing.overload
def foo(p: str) -> str
\ No newline at end of file
+
\ No newline at end of file
diff --git a/python/testData/quickdoc/OverloadsAndImplementation.html b/python/testData/quickdoc/OverloadsAndImplementation.html
index 54f92d4102e9..7d8486578711 100644
--- a/python/testData/quickdoc/OverloadsAndImplementation.html
+++ b/python/testData/quickdoc/OverloadsAndImplementation.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/python/testData/quickdoc/PlainTextDocstringsQuotesPlacementDoesntAffectFormatting.html b/python/testData/quickdoc/PlainTextDocstringsQuotesPlacementDoesntAffectFormatting.html
index 99eeba9d2dc2..52a6adc41bbd 100644
--- a/python/testData/quickdoc/PlainTextDocstringsQuotesPlacementDoesntAffectFormatting.html
+++ b/python/testData/quickdoc/PlainTextDocstringsQuotesPlacementDoesntAffectFormatting.html
@@ -1 +1 @@
-Docstring.
\ No newline at end of file
+Docstring.
\ No newline at end of file
diff --git a/python/testData/quickdoc/SingleLineAssignedValueForTarget.html b/python/testData/quickdoc/SingleLineAssignedValueForTarget.html
index 08e07b91f19f..9bd22d1b599b 100644
--- a/python/testData/quickdoc/SingleLineAssignedValueForTarget.html
+++ b/python/testData/quickdoc/SingleLineAssignedValueForTarget.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/python/testData/quickdoc/TypeVars.html b/python/testData/quickdoc/TypeVars.html
index ef819546415b..58687c159326 100644
--- a/python/testData/quickdoc/TypeVars.html
+++ b/python/testData/quickdoc/TypeVars.html
@@ -1 +1 @@
-def f(p1: T1, p2: T2, p3: T3) -> None
\ No newline at end of file
+TypeVars
def f(p1: T1, p2: T2, p3: T3) -> None
\ No newline at end of file
diff --git a/python/testData/quickdoc/UnknownTuple.html b/python/testData/quickdoc/UnknownTuple.html
index 6573c1b60ca8..c27a1366e5a8 100644
--- a/python/testData/quickdoc/UnknownTuple.html
+++ b/python/testData/quickdoc/UnknownTuple.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/python/testData/quickdoc/UnmatchedAssignedValueForTarget.html b/python/testData/quickdoc/UnmatchedAssignedValueForTarget.html
index b8a92b8ebb92..506a46732b59 100644
--- a/python/testData/quickdoc/UnmatchedAssignedValueForTarget.html
+++ b/python/testData/quickdoc/UnmatchedAssignedValueForTarget.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file