if (virtualJsoMethods.isEmpty()) {
return;
}
CreateStaticImplsVisitor creator = new CreateStaticImplsVisitor(program);
for (JMethod method : virtualJsoMethods) {
// Ensure staticImpls exist for any instance methods.
JMethod jsoStaticImpl = program.getStaticImpl(method);
if (jsoStaticImpl == null) {
creator.accept(method);
jsoStaticImpl = program.getStaticImpl(method);
assert (jsoStaticImpl != null);
}
// Find the object method this instance method overrides.