void (@NotNull FileEditorProvider provider, @NotNull PluginDescriptor pluginDescriptor) { String editorTypeId = provider.getEditorTypeId(); Predicate<PlaceInfo> clearStatePredicate = e -> editorTypeId.equals(e.getEditorTypeId()); if (myChangePlaces.removeIf(clearStatePredicate)) { myCurrentIndex = myChangePlaces.size(); } myBackPlaces.removeIf(clearStatePredicate); myForwardPlaces.removeIf(clearStatePredicate); if (myCommandStartPlace != null && myCommandStartPlace.getEditorTypeId().equals(editorTypeId)) { myCommandStartPlace = null; } }