void () { configureByFile(BASE_PATH + "/" + getTestName(false) + ".java"); final int offset = getEditor().getCaretModel().getOffset(); PsiMethodCallExpression expression = PsiTreeUtil.getParentOfType(getFile().findElementAt(offset), PsiMethodCallExpression.class); IdempotenceChecker.disableRandomChecksUntil(getTestRootDisposable()); assertTrue(expression.resolveMethodGenerics().isValidResult()); }