impl convenience methods to do the intellij closure thing.