List<PsiVariable> (@NotNull List<PsiField> fields, @NotNull PsiParameterList parameterList) { final List<PsiVariable> params = new ArrayList<>(Arrays.asList(parameterList.getParameters())); PsiMethod constructor = (PsiMethod)parameterList.getParent(); for (PsiField field : fields) { if (!isFieldAssignedInConstructor(field, constructor)) { params.add(field); } } params.sort(new FieldParameterComparator(parameterList)); return params; }