CaretStopBoundaries (@NotNull CaretStopBoundary boundary) { if (boundary.equals(CaretStopBoundary.NONE)) { return CaretStopBoundaries.NONE; } else if (boundary.equals(CaretStopBoundary.CURRENT)) { return CaretStopBoundaries.CURRENT; } else if (boundary.equals(CaretStopBoundary.NEIGHBOR)) { return CaretStopBoundaries.NEIGHBOR; } else if (boundary.equals(CaretStopBoundary.START)) { return CaretStopBoundaries.START; } else if (boundary.equals(CaretStopBoundary.END)) { return CaretStopBoundaries.END; } else if (boundary.equals(CaretStopBoundary.BOTH)) return CaretStopBoundaries.BOTH; return CaretStopBoundaries.OTHER; }