Icon (@NotNull PsiElement element) { int flags = Iconable.ICON_FLAG_VISIBILITY; if (isMarkReadOnly()) { flags |= Iconable.ICON_FLAG_READ_STATUS; } try { return element.getIcon(flags); } catch (IndexNotReadyException ignored) { return null; } }