PsiTypeLookupItem (@NotNull LookupElement item, @NotNull List<PsiTypeLookupItem> castTypeItems, @Nullable PsiType plainQualifier, JavaCompletionProcessor processor, Set<? extends PsiType> expectedTypes) { return ContainerUtil.find(castTypeItems, c -> shouldCast(item, c, plainQualifier, processor, expectedTypes)); }