Set<String> (@NotNull PsiModifierList modifierList, @NotNull Project project, @NotNull Set<String> modifiers) { Ref<Set<String>> result = Ref.create(modifiers); forEach(project, provider -> { result.set(provider.transformModifiers(modifierList, Collections.unmodifiableSet(result.get()))); return true; }); return result.get(); }