Problem with code assistance with Groovy/Java on a Maven project

Can't make code assistance work with Groovy mixed with Java code (actually, Tests written in groove and production code in java). When I have, for example, a class (java) with no methods been used in a groovy class:

        def object = new MyJavaClass();

        String something = object.inexistentMethod();

Intellij marks inexistentMethod as dynamic, but when I do ALT+Enter, it does not show the option to create the method in the java class, or a property, it only shows the option to create a dynamic method. I attached a project with this example. Am I missing something? Am I doing something wrong?

Thank in Advance,


Please sign in to leave a comment.