in src/main/kotlin/com/pestphp/pest/goto/PestTestGoToSymbolContributor.kt [22:40]
override fun getNames(project: Project, includeNonProjectItems: Boolean): Array<String> {
val index = FileBasedIndex.getInstance()
return index
.getAllKeys(key, project)
.flatMap {
index.getValues(
key,
it,
when {
includeNonProjectItems -> ProjectScope.getAllScope(project)
else -> ProjectScope.getProjectScope(project)
}
)
}
.flatten()
.distinct()
.toTypedArray()
}