CompoundScheme<E> (String name) { try { Constructor<? extends CompoundScheme> constructor = getClass().getConstructor(String.class); try { constructor.setAccessible(true); } catch (Exception ignored) { } //noinspection unchecked return constructor.newInstance(name); } catch (Exception e) { throw new RuntimeException(e); } }