Collection<String> (PsiParameterList compareMethodParameterList) { Collection<String> result = new ArrayList<>(); final PsiParameter[] compareMethodParameterListParameters = compareMethodParameterList.getParameters(); for (PsiParameter compareMethodParameterListParameter : compareMethodParameterListParameters) { result.add(stripJavaLang(compareMethodParameterListParameter.getType().getCanonicalText())); } return result; }