public boolean isConstructorAccessibleForDecoding(Class clazz) { try { Constructor constr = clazz.getDeclaredConstructor(null); return isWithin(constr.getModifiers(), decodingAccessScope.get(CONSTRUCTOR_SCOPE)); } catch (Exception e) { return false; } }