public static < T > void makeAccessible ( final Constructor < T > constructor ) { if ( ! Modifier . isPublic ( constructor . getModifiers ( ) ) || ! Modifier . isPublic ( constructor . getDeclaringClass ( ) . getModifiers ( ) ) ) { constructor . setAccessible ( true ) ; } }
set constructor is accessible