Trying to set up a rule that any call to the method getDbSql in a class called DbResource automatically injects the sql. This seems to work but only partially. For instance, the following kotlin code
val dbr = DbResource()
dbr.getDbSql("""select * from WorkOrders""")...
This code works fine and I get the type-assist and everything. However, when I hit enter, all of that goes away and the only way to get it back is to hit alt+enter at the end and then choose SQL from the entire list.
DbResource is a java class.