String (PsiNamedElement element, NameSuggester suggester, String newClassName, String oldClassName) { if (element instanceof PyFile && element.getName().equals(StringUtil.toLowerCase(oldClassName) + ".py")) { return StringUtil.toLowerCase(newClassName) + ".py"; } return super.suggestNameForElement(element, suggester, newClassName, oldClassName); }