I use lambda expressions/anonymous classes in my app (for example, for onClickListener) but it leads to memory leaks and nullifying all them seems to be pain. I was wondering if there is a laconic way that I could use instead lambda expressions/anonymous classes but without creating static classes for every case?