public static boolean isReserved(String str) {
        return SourceVersion.isKeyword(str);
    }
JavaSyntaxUtils defines reserved keywords for Java

@author tiwe
@deprecated use the built-in {@link SourceVersion#isKeyword(CharSequence) keyword list} instead.
querydsl-core/src/main/java/com/querydsl/core/util/JavaSyntaxUtils.java