[SLC] AnnotationFilter: add kdoc

^KT-56046
This commit is contained in:
Dmitrii Gridin
2023-02-02 15:01:06 +01:00
committed by Space Team
parent 4e07210b9c
commit 0b7ef03490
@@ -7,7 +7,19 @@ package org.jetbrains.kotlin.light.classes.symbol.annotations
import com.intellij.psi.PsiAnnotation
/**
* Provider a filter for resulted annotations from [LazyAnnotationsBox]
*
* @see LazyAnnotationsBox
*/
internal sealed interface AnnotationFilter {
/**
* @return **true** if an annotations with [qualifiedName] is allowed
*/
fun isAllowed(qualifiedName: String): Boolean
/**
* @return a filtered collection where each annotation in a list has an allowed qualifier
*/
fun filtered(annotations: Collection<PsiAnnotation>): Collection<PsiAnnotation>
}