void () { IdeaTestUtil.setTestVersion(JavaSdkVersion.JDK_1_8, getModule(), getTestRootDisposable()); String filePath = BASE_PATH + "/" + getTestName(false) + ".java"; configureByFile(filePath); PsiReference reference = getFile().findReferenceAt(getEditor().getCaretModel().getOffset()); assertNotNull(reference); PsiElement resolve = reference.resolve(); assertInstanceOf(resolve, PsiMethod.class); assertEquals("java.lang.StringBuilder append(int i)", PsiFormatUtil.formatMethod((PsiMethod)resolve, PsiSubstitutor.EMPTY, PsiFormatUtilBase.SHOW_TYPE | PsiFormatUtilBase.SHOW_FQ_CLASS_NAMES | PsiFormatUtilBase.SHOW_NAME | PsiFormatUtilBase.SHOW_PARAMETERS, PsiFormatUtilBase.SHOW_NAME | PsiFormatUtilBase.SHOW_TYPE | PsiFormatUtilBase.SHOW_FQ_NAME)); }