Set<String> (@NotNull List<? extends PsiElement> inside, @NotNull List<? extends PsiElement> outside) { Set<String> dialectIds = new HashSet<>(); Set<Language> processedLanguages = new HashSet<>(); addDialects(inside, processedLanguages, dialectIds); addDialects(outside, processedLanguages, dialectIds); return dialectIds; }