void (PsiDirectory @NotNull [] directories, @Nullable String postfixToShow, @Nullable Map<PsiDirectory, String> postfixes) { for (PsiDirectory directory : directories) { ProgressManager.checkCanceled(); final String postfixForDirectory; if (postfixes == null) { postfixForDirectory = postfixToShow; } else { postfixForDirectory = postfixes.get(directory); } myItems.add(new ItemWrapper(directory, postfixForDirectory)); } }