void (@NotNull Project project, CommonProblemDescriptor @NotNull [] descriptors, @NotNull List<PsiElement> psiElementsToIgnore, @Nullable Runnable refreshViews) { VirtualFile nullValue = new LightVirtualFile(); Map<VirtualFile, List<CommonProblemDescriptor>> byPropertyFiles = Arrays.stream(descriptors) .filter(d -> d instanceof ProblemDescriptor) .collect( Collectors.groupingBy(cd -> ObjectUtils.notNull(((ActionOrGroupQuickFixAction)cd.getFixes()[0]).myPropertiesFile, nullValue))); //in case of multiple files in selection with different bundles, multiple clear read-only status dialog is possible for (Map.Entry<VirtualFile, List<CommonProblemDescriptor>> entry : byPropertyFiles.entrySet()) { VirtualFile propertyFile = entry.getKey().equals(nullValue) ? null : entry.getKey(); doFix(project, propertyFile, getTags(entry.getValue())); } }