code: public static boolean isType(File file, String extension)
      {
          Check.notNull(extension);
  
          if (file != null && file.isFile())
          {
              final String current = getExtension(file);
              return current.equals(extension.replace(Constant.DOT, Constant.EMPTY_STRING));
          }
          return false;
      }
docs: Check if the following type is the expected type.
  
  @param file The file to check (can be <code>null</code>).
  @param extension The expected extension (must not be <code>null</code>).
  @return <code>true</code> if correct, <code>false</code> else.
  @throws LionEngineException If invalid argument.