Collection<SliceUsage> (@NotNull SliceUsage usage) { PsiElement element = usage.getElement(); if (element == null) return Collections.singletonList(usage); SliceLanguageSupportProvider provider = LanguageSlicing.getProvider(element); if (!(provider instanceof SliceUsageTransformer)) return Collections.singletonList(usage); Collection<SliceUsage> transformedUsages = ((SliceUsageTransformer)provider).transform(usage); return transformedUsages != null ? transformedUsages : Collections.singletonList(usage); }