public static Predicate<Class<?>> atLeastOneConstructorIsPublic() {
        return candidate -> candidate != null && Classes.from(candidate)
                .constructors()
                .anyMatch(executableModifierIs(Modifier.PUBLIC));
    }
public static Predicate < Class < ? > > atLeastOneConstructorIsPublic ( ) { return candidate -> candidate != null && Classes . from ( candidate ) . constructors ( ) . anyMatch ( executableModifierIs ( Modifier . PUBLIC ) ) ; }
Checks if a candidate class has at least one public constructor.

@return the predicate.