PsiElement (PsiElement element, List<? extends PsiElement> result, String propertyName) { if (result.size() == 1) { return result.get(0); } else /*if (result.size() > 1)*/ { return new PropertyForRename(result, propertyName, element.getManager()); } }