Puts the Java method search outside the askOption

Searching for a Java method may trigger some AskLoadedType in the
presentation compiler, so it cannot be done while inside its thread.