Collection<PsiMethod> (@NotNull PsiClass psiClass, @NotNull String methodModifier, @Nullable String nameHint) { Collection<PsiMethod> result = new ArrayList<>(); final Collection<PsiField> setterFields = filterSetterFields(psiClass); for (PsiField setterField : setterFields) { ContainerUtil.addIfNotNull(result, SetterFieldProcessor.createSetterMethod(setterField, psiClass, methodModifier, nameHint)); } return result; }