in src/main/java/lt/martynassateika/idea/codeigniter/helper/CiHelperUtil.java [71:89]
static List<PsiFile> findHelperFiles(String relativePath, Project project) {
PsiManager psiManager = PsiManager.getInstance(project);
// Get rid of various possible combinations of '_helper' and '.php', then add the suffix back
String fullPath = formatHelperPath(relativePath) + FILE_SUFFIX;
List<PsiFile> helperFiles = new ArrayList<>();
for (PsiFileSystemItem fileSystemItem : getHelperDirectories(project)) {
VirtualFile helperDirectory = fileSystemItem.getVirtualFile();
VirtualFile helperFile = helperDirectory.findFileByRelativePath(fullPath);
if (helperFile != null && !helperFile.isDirectory()) {
PsiFile psiFile = psiManager.findFile(helperFile);
if (psiFile != null) {
helperFiles.add(psiFile);
}
}
}
return helperFiles;
}