diff --git a/uast/uast-common/src/org/jetbrains/uast/UAnnotationUtils.kt b/uast/uast-common/src/org/jetbrains/uast/UAnnotationUtils.kt index 9ff9d3de6c1a..ad721a1286f3 100644 --- a/uast/uast-common/src/org/jetbrains/uast/UAnnotationUtils.kt +++ b/uast/uast-common/src/org/jetbrains/uast/UAnnotationUtils.kt @@ -96,23 +96,7 @@ fun getContainingUAnnotationEntry(uElement: UElement?): Pair true - is UReferenceExpression -> uElement is UExpression && parent.sourcePsi.toUElementOfType() != null - is UCallExpression -> - if (uElement is UExpression && parent.sourcePsi.toUElementOfType() != null) true - else isAnnotationComponent(parent) - is UPolyadicExpression, is UNamedExpression -> isAnnotationComponent(parent) - else -> false - } - } - - return if (isAnnotationComponent(uElement)) retrievePsiAnnotationEntry(uElement, null) else null + return retrievePsiAnnotationEntry(uElement, null) } fun getContainingAnnotationEntry(uElement: UElement?): Pair? {