SuggestedNameInfo (PsiElement element, PsiElement nameSuggestionContext, Set<String> result) { if (!(element instanceof PyElement)) return null; final String name = ((PyElement)element).getName(); if (name == null) return null; if (element instanceof PyClass) { result.add(toCamelCase(name, true)); } else if (element instanceof PyFunction || element instanceof PyParameter) { result.add(toUnderscores(name)); } else { result.add(toUnderscores(name)); final PyAssignmentStatement assignmentStatement = PsiTreeUtil.getParentOfType(element, PyAssignmentStatement.class); if (assignmentStatement != null) return null; result.add(StringUtil.toUpperCase(name)); result.add(toCamelCase(name, false)); } return SuggestedNameInfo.NULL_INFO; }