Declaring an optional dependency with "requires static" seems not to work and I get a ClassNotFoundException. When removing the "static" key
ClassNotFoundException