private static Icon getVisibilityIcon(@NotNull DeclarationDescriptor descriptor) {
        if (descriptor instanceof DeclarationDescriptorWithVisibility descriptorWithVisibility) {
          DescriptorVisibility visibility = descriptorWithVisibility.getVisibility().normalize();
            if (visibility == DescriptorVisibilities.PUBLIC) {
                return PlatformIcons.PUBLIC_ICON;
            }

            if (visibility == DescriptorVisibilities.PROTECTED) {
                return IconManager.getInstance().getPlatformIcon(com.intellij.ui.PlatformIcons.Protected);
            }

            if (DescriptorVisibilities.isPrivate(visibility)) {
                return IconManager.getInstance().getPlatformIcon(com.intellij.ui.PlatformIcons.Private);
            }

            if (visibility == DescriptorVisibilities.INTERNAL) {
                return IconManager.getInstance().getPlatformIcon(com.intellij.ui.PlatformIcons.Local);
            }
        }

        return null;
    }
private static Icon getVisibilityIcon(@NotNull DeclarationDescriptor descriptor)