void () { configureByFile(getBasePath() + "DeceivingSiblingInheritance.java"); PsiJavaFile file = (PsiJavaFile)getFile(); PsiClass OCBaseLanguageFileType = JavaPsiFacade.getInstance(getProject()).findClass("z.OCBaseLanguageFileType", GlobalSearchScope.fileScope(file)); PsiMethod getName = OCBaseLanguageFileType.getMethods()[0]; assertEquals("getName", getName.getName()); doHighlighting(); Document document = getEditor().getDocument(); List<LineMarkerInfo<?>> markers = DaemonCodeAnalyzerImpl.getLineMarkers(document, getProject()); List<LineMarkerInfo<?>> inMyClass = ContainerUtil.filter(markers, info -> OCBaseLanguageFileType.getTextRange().containsRange(info.startOffset, info.endOffset)); assertEquals(inMyClass.toString(), 2, inMyClass.size()); LineMarkerInfo<?> iMarker = findMarkerWithElement(inMyClass, getName.getNameIdentifier()); assertSame(MarkerType.OVERRIDING_METHOD.getNavigationHandler(), iMarker.getNavigationHandler()); LineMarkerInfo<?> aMarker = findMarkerWithElement(inMyClass, OCBaseLanguageFileType.getNameIdentifier()); assertSame(MarkerType.SUBCLASSED_CLASS.getNavigationHandler(), aMarker.getNavigationHandler()); }