static com.github.javaparser.ast.type.Type changeTypeContext( ResolutionContext old, ResolutionContext new_, com.github.javaparser.ast.type.Type t) { Type current = old.resolve(t); if (current.isClassType()) { return ResolutionContext.typeToJavaParserType( current.remapClassNames(new_::typeToJavaParserType)); } return t; }