Icon () { Icon icon = myUsageInfo.getIcon(); if (icon != null) { return icon; } PsiElement psiElement = getElement(); return psiElement != null && psiElement.isValid() && !isFindInPathUsage(psiElement) ? psiElement.getIcon(0) : null; }