public boolean isNameValid(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);
  }
public boolean isNameValid(final String name, final Project project)