PsiElementListCellRenderer (@NotNull final PsiElement element, @NotNull GotoTargetHandler.GotoData gotoData) { if (element instanceof PyElement && element instanceof PsiNamedElement) return new PyElementListCellRenderer(); return null; }