boolean (@NotNull LookupElement item, @Nullable PsiType itemType) { if (JavaCompletionUtil.SUPER_METHOD_PARAMETERS.get(item) != null) { return true; } if (itemType == null || itemType.equalsToText(CommonClassNames.JAVA_LANG_OBJECT)) { return false; } return ContainerUtil.exists(myExpectedTypes, info -> box(info.getType().getDeepComponentType()).equals(box(itemType))); }