I'm adding a method completion lookup element with a custom icon. My icon is comprised of two icons, side by side, like the method icon and visiblity icon.
It looks like this:
I'm using the following code to achieve that:
final RowIcon boundCompletionIcon = ElementPresentationUtil.createLayeredIcon(icon, psiMethod, false);
This worked fine until version 2019.2. Looks like the visibility icons don't appear any more for method completions (so my second icon doesn't have enough space?). Is this controlled by some user settings like the project's "show visibility icons"?
Also, looks like
is now deprecated.
What's the correct way to achieve this (preferably one that will work for both 2019.2 and previous versions)?