Collection<String> (@NotNull PsiFile context, @NotNull String originalName) { Collection<String> names = new HashSet<>(); names.add(originalName); for (FileIncludeProvider provider : FileIncludeProvider.EP_NAME.getExtensionList()) { String newName = provider.getIncludeName(context, originalName); if (!Strings.areSameInstance(newName, originalName)) { names.add(newName); } } return names; }