Skip to content

Commit

Permalink
Deleted duplicate comments
Browse files Browse the repository at this point in the history
  • Loading branch information
anchouls committed Dec 11, 2023
1 parent 5556d8a commit 69b8331
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import com.intellij.psi.util.parentsOfType
import org.jetbrains.academy.test.system.ij.formatting.formatting

/** Extracts elements of given type from related files in project. */
/** Extracts elements of given type from [PsiElement] subtree. */
fun <T : PsiElement> PsiElement.extractElementsOfTypes(vararg psiElementClass: Class<out T>): MutableCollection<T> =
psiElementClass.flatMap { PsiTreeUtil.collectElementsOfType(this, it) }.toMutableList()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ import org.jetbrains.kotlin.psi.*
import org.junit.jupiter.api.Assertions

/** Extracts [kotlin elements][KtElement] of given type from kotlin related files in project. */
/**
* Extracts elements of given type from [PsiElement] subtree.
*
* @param psiElementClass vararg of [Class]es representing the desired types to extract.
* @return a mutable collection of elements of the given types found in the subtree.
*/
fun <T : PsiElement> PsiElement.extractElementsOfTypes(vararg psiElementClass: Class<out T>): MutableCollection<T> =
psiElementClass.flatMap { PsiTreeUtil.collectElementsOfType(this, it) }.toMutableList()

Expand Down

0 comments on commit 69b8331

Please sign in to comment.