@Override
  public @Nullable String getErrorMessage(@Nullable Project project, @NotNull String string) {
    return StringUtil.isJavaIdentifier(string) ? null :
           JavaBundle.message("hint.text.not.valid.java.identifier");
  }
@Override
  public @Nullable String getErrorMessage(@Nullable Project project, @NotNull String string)