boolean (PsiMethod method) { if (method.getParameterList().isEmpty()) return false; for (StandardMethodContract contract : JavaMethodContractUtil.getMethodContracts(method)) { if (contract.getReturnValue().isNull()) { return true; } } return false; }