[undo] IJPL-201535 Refactor UndoableActionType

GitOrigin-RevId: 6c86f89bc18fbf04f89466c16c20be3cafe0bd10
This commit is contained in:
Alexander Trushev
2025-12-15 21:25:37 +00:00
committed by intellij-monorepo-bot
parent 6129982d41
commit f91dcdab02
@@ -19,7 +19,7 @@ public enum UndoableActionType {
MENTION_ONLY,
EDITOR_CHANGE,
NON_UNDOABLE,
RESET_ORIGINATOR,
RESET_ORIGINATOR, // TODO: its a hacky way
GLOBAL,
OTHER,
;
@@ -67,6 +67,6 @@ public enum UndoableActionType {
}
private static <T> @NotNull T first(@NotNull Collection<T> collection) {
return collection.stream().iterator().next();
return collection.iterator().next();
}
}