PsiClassType[] (PsiClassType[] exceptions) { List<PsiClassType> result = new ArrayList<>(); for (PsiClassType exceptionType : exceptions) { if (!ExceptionUtil.isUncheckedException(exceptionType)) result.add(exceptionType); } return result.toArray(PsiClassType.EMPTY_ARRAY); }