private static int saturatedSum(int a, int b) {
        int r = a + b;
        if (r < a || r < b) {
            return Integer.MAX_VALUE;
        } else {
            return r;
        }
    }
Prepare completion context for the specified position in the text
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/semantics/SQLBackgroundParsingJob.java