fun getEntries()

in src/main/kotlin/mobi/hsz/idea/gitignore/indexing/IgnoreFilesIndex.kt [96:105]


fun getEntries(project: Project, fileType: IgnoreFileType): List<IgnoreEntryOccurrence> {
    try {
        if (ApplicationManager.getApplication().isReadAccessAllowed) {
            val scope = IgnoreSearchScope[project]
            return FileBasedIndex.getInstance().getValues(KEY, IgnoreFileTypeKey(fileType), scope)
        }
    } catch (ignored: RuntimeException) {
    }
    return emptyList()
}