I have a static method declared in Java:
class X {
public static void foo(Y y) { … }
}
I would love to use this method as extension method for instances of type Y in Kotlin:
import X.foo
…
y.foo()
Is that possible? I have control over all source code in question, e.g. to add annotations.