diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/symbols/FirBasedSymbol.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/symbols/FirBasedSymbol.kt index 95591eea535..733d51aea2d 100644 --- a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/symbols/FirBasedSymbol.kt +++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/symbols/FirBasedSymbol.kt @@ -74,7 +74,10 @@ fun FirAnnotationContainer.resolvedAnnotationsWithArguments(anchorElement: FirBa fun List.resolvedAnnotationsWithArguments(anchorElement: FirBasedSymbol<*>): List { if (isEmpty()) return emptyList() - // this loop by index is required to avoid possible ConcurrentModificationException + /** + * This loop by index is required to avoid possible [ConcurrentModificationException], + * because the annotations might be in a process of resolve from some other threads + */ var hasAnnotationCallWithArguments = false for (i in indices) { val currentAnnotation = get(i)