code: public static <T> Constructor<T> getAccessibleConstructor(final Constructor<T> ctor) {
          Objects.requireNonNull(ctor, "constructor cannot be null");
          return MemberUtils.isAccessible(ctor)
                  && isAccessible(ctor.getDeclaringClass()) ? ctor : null;
      }
docs: <p>Checks if the specified constructor is accessible.</p>
  
  <p>This simply ensures that the constructor is accessible.</p>
  
  @param <T> the constructor type
  @param ctor  the prototype constructor object, not {@code null}
  @return the constructor, {@code null} if no matching accessible constructor found
  @see SecurityManager
  @throws NullPointerException if {@code ctor} is {@code null}