Yeah this method needs work. You need to declare some intermediate variables for the stuff that you access all the time, you need to break down complex statements that are hard to read, and you need to javadoc it better. What is it doing? "get function from call to return"? What is that? Call of what? Return of what? What kind of function? And what is it doing, because if it were getting a function I would see return type Function, not boolean.