Im beginner JAVA developer. Here is a method:

```
private Method getSomething()
{
    for (Method m : getClass().getDeclaredMethods())
    {
        return m;
    }
    return notFound;
}

private void notFound()
{
    throw new Exception();
}

```

it doesnt matter what it does - if it finds something, then returns a `Method` - if not, the `notFound()` method itself should be returned. So the hot spot is at the `return notFound;` line: if I use `return notFound();` then it returns its value, not the method itself. I want something like a reference/pointer. So `getSomething()` returns something what can be called, and if the returned method is used wrong, it should trigger that Exception - so its not an option to replace `return notFound;` with `throw new Exception();` !
Or the 2nd option is to create a lambda method....