boolean (final String name, final Project project) { final NamesValidator validator = LanguageNamesValidation.INSTANCE.forLanguage(PythonLanguage.getInstance()); return name != null && validator.isIdentifier(name, project) && !validator.isKeyword(name, project); }