This is more efficient:

  !FileMode.SYMLINK.equals(entry.getRawMode())

The issue is, getFileMode() has to test a number of FileMode constants to see which one it matches... after it called getRawMode() to get the integer value.  Testing the integer value against FileMode.SYMLINK only will save some compares.