boolean (@Nullable Object data) { if (data instanceof PsiElement && !(data instanceof FakePsiElement)) return true; if (data instanceof Object[] array) return isPsiElementProvided(ArrayUtil.getFirstElement(array)); if (data instanceof Collection<?> collection) return isPsiElementProvided(ContainerUtil.getFirstItem(collection)); return false; }