PsiClassType[] (PsiClassType[] exceptions, PsiElement place) { List<PsiClassType> result = new ArrayList<>(); for (PsiClassType exception : exceptions) { if (!ExceptionUtil.isHandled(exception, place)) result.add(exception); } return result.toArray(PsiClassType.EMPTY_ARRAY); }