void (@NonNls String @NotNull [] names, @NotNull ElementPattern<?> filter, boolean caseSensitive, @NotNull PsiReferenceProvider provider, double priority) { Map<String, List<ProviderInfo<ElementPattern<?>>>> map = caseSensitive ? myNamesToProvidersMap : myNamesToProvidersMapInsensitive; for (String attributeName : names) { String key = caseSensitive ? attributeName : StringUtil.toLowerCase(attributeName); List<ProviderInfo<ElementPattern<?>>> psiReferenceProviders = map.get(key); if (psiReferenceProviders == null) { map.put(key, psiReferenceProviders = new SmartList<>()); } psiReferenceProviders.add(new ProviderInfo<>(provider, filter, priority)); } }