void (@NotNull Project project, @NotNull List<? extends Module> modules, @NotNull Function<? super Module, String> oldNameProvider) { FacetPointersManager manager = FacetPointersManager.getInstance(myProject); if (manager instanceof FacetPointersManagerImpl managerImpl) { managerImpl.refreshPointers(); } }