void (@NotNull final IdeModifiableModelsProvider modelsProvider, @NotNull Project project, boolean synchronous) { ExternalSystemApiUtil.executeProjectChangeAction(synchronous, new DisposeAwareProjectChange(project) { @Override public void execute() { modelsProvider.dispose(); } }); }