void (@NotNull PsiMethod method) { super.visitMethod(method); if (!method.hasModifierProperty(PsiModifier.PUBLIC)) { return; } if (PropertyUtilBase.isSimplePropertySetter(method) || LibraryUtil.isOverrideOfLibraryMethod(method)) { return; } final PsiParameterList parameterList = method.getParameterList(); final PsiParameter[] parameters = parameterList.getParameters(); int count = 0; for (PsiParameter parameter : parameters) { final PsiType type = parameter.getType(); if (!PsiTypes.booleanType().equals(type)) { continue; } if (MethodCallUtils.isUsedAsSuperConstructorCallArgument(parameter, true)) { continue; } count++; if (count > 1) { break; } } if (count == 0 || onlyReportMultiple && count == 1) { return; } registerMethodError(method, method, Integer.valueOf(count)); }