GradleInterfaceVersion2 gradleInterface = (GradleInterfaceVersion2) singlePane.getGradleInterfaceVersion1();
BlockingRequestObserver testRequestObserver = new BlockingRequestObserver(RequestVersion1.REFRESH_TYPE);
gradleInterface.addRequestObserver(testRequestObserver);
singlePane.aboutToShow();
gradleInterface.refreshTaskTree();
testRequestObserver.waitForRequestExecutionComplete(80, TimeUnit.SECONDS);