for (VirtualFile vFile : files) {
PsiFile file = PsiManager.getInstance(project).findFile(vFile);
if (file == null || file.getFileType() != HaxeFileType.HAXE_FILE_TYPE) {
continue;
}
final HaxeComponent component = HaxeResolveUtil.findComponentDeclaration(file, name);
if (component != null) {
result.add(component);
}
}
return result;