private EmployeePlan createEmployeePlanIfNeed( Integer year, Integer month, Employee employee, DictionaryItem dictionaryItem) { EmployeePlan employeePlan = employeePlanService.tryFind(employee, year, month, dictionaryItem); if (employeePlan == null) { employeePlan = new EmployeePlan(); employeePlan.setType(dictionaryItem); employeePlan.setEmployee(employee); employeePlan.setYear(year); employeePlan.setMonth(month); } return employeePlan; }