@Nullable annotation implies that the argument could be null. Correct fix is to keep the @Nullable annotation and do the following:
return arg0 != null ? arg0.getSqlName() : null;