boolean (@NotNull UExpression expression, @Nullable Ref<? super UExpression> resourceBundleRef) { expression = StringFlowUtil.goUp(expression, false, NlsInfo.factory()); AnnotationContext context = AnnotationContext.fromExpression(expression); return context.allItems().anyMatch(owner -> { PsiAnnotation annotation = owner.findAnnotation(AnnotationUtil.PROPERTY_KEY); if (annotation != null && resourceBundleRef != null) { PsiAnnotationMemberValue attributeValue = annotation.findAttributeValue(AnnotationUtil.PROPERTY_KEY_RESOURCE_BUNDLE_PARAMETER); resourceBundleRef.set(UastContextKt.toUElement(attributeValue, UExpression.class)); } return annotation != null; }); }