boolean (@NotNull List<? extends PsiElement> elements) { Set<PsiType> uniqueValues = new HashSet<>(); for (PsiElement e : elements) { UCallExpression element = UastContextKt.toUElement(e, UCallExpression.class); if (element != null) { PsiType type = element.getExpressionType(); if (uniqueValues.add(type)) { if (ProjectIconsAccessor.isIconClassType(type)) { return true; } } } } return false; }