void (final @NotNull Project project, final @NotNull Collection<? extends VirtualFile> files, final boolean includeOpenFiles) { LinkedHashSet<VirtualFile> fileSet = new LinkedHashSet<>(files); if (includeOpenFiles) { Collections.addAll(fileSet, FileEditorManager.getInstance(project).getOpenFiles()); } FileContentUtilCore.reparseFiles(fileSet); }