ProblemDescriptor[] (@NotNull PsiMethod method, @NotNull InspectionManager manager, boolean isOnTheFly) { List<ProblemDescriptor> list = checkCodeBlock(method.getBody(), manager, isOnTheFly); return list == null ? null : list.toArray(ProblemDescriptor.EMPTY_ARRAY); }