VirtualFile[] (final PsiFile file, final boolean compileTimeOnly) { final Set<VirtualFile> files = new HashSet<>(); processIncludes(file, info -> { if (compileTimeOnly != info.runtimeOnly) { PsiFileSystemItem item = resolveFileInclude(info, file); if (item != null) { ContainerUtil.addIfNotNull(files, item.getVirtualFile()); } } return true; }); return VfsUtilCore.toVirtualFileArray(files); }