public static boolean isProxiedClass(Class<?> currentClass) {
        if (currentClass == null || currentClass.getSuperclass() == null) {
            return false;
        }

        String name = currentClass.getName();
        return name.startsWith(currentClass.getSuperclass().getName())
                    && (name.contains("$$") // CDI
                    || name.contains("_ClientProxy") //Quarkus
                    || name.contains("$HibernateProxy$")); // Hibernate
    }
NOTE: copied from DeltaSpike

Analyses if the given class is a generated proxy class

@param currentClass current class

@return true if the given class is a known proxy class, false otherwise
primefaces/src/main/java/org/primefaces/util/LangUtils.java