idea-plugin / arrow.meta.ide.dsl.utils / com.intellij.psi.PsiElement

Extensions for com.intellij.psi.PsiElement

inspectionManager fun PsiElement.inspectionManager(): InspectionManager
sequence a convenient function that collects all child nodes A starting from receiver it applies traverseFilter with the identity functionfun <A : PsiElement> PsiElement.sequence(on: Class<A>): List<A>
traverseFilter traverse and filters starting from the root node receiver down to all it’s children and applying ffun <A : PsiElement, B : Any> PsiElement.traverseFilter(on: Class<A>, f: (A) -> B?): List<B>

Do you like Arrow?

Arrow Org
<