void () { configureByFile(BASE_DIR + getTestName(false) + ".java"); int offset = getEditor().getCaretModel().getOffset(); PsiElement context = getFile().findElementAt(offset); PsiClass psiClass = PsiTreeUtil.getParentOfType(context, PsiClass.class); assert psiClass != null; final Collection<MethodSignature> signatures = OverrideImplementExploreUtil.getMethodSignaturesToOverride(psiClass); final Collection<String> strings = ContainerUtil.map(signatures, FunctionUtil.string()); assertTrue(strings.toString(), strings.contains("HierarchicalMethodSignatureImpl: A([PsiType:String])")); assertFalse(strings.toString(), strings.contains("HierarchicalMethodSignatureImpl: A([])")); }