duplicate signature proper fix
avoid expensive Class.getModifiers() call