@Override @CheckForNull public String getLineHash() { if (getLine() == null || hashes == null) { return null; } int line = getLine(); Preconditions.checkState( line <= hashes.length(), "Invalid line number for issue %s. File has only %s line(s)", this, hashes.length()); return hashes.getHash(line); }