docs: public static ArrayList<FileListItem> prepareFileListEntries(ArrayList<FileListItem> internalList, File inter, ExtensionFilter filter)
      {   try {
              //Check for each and every directory/file in 'inter' directory.
              //Filter by extension using 'filter' reference.
  
              for (File name : inter.listFiles(filter)) {
                  //If file/directory can be read by the Application
                  if (name.canRead()) {
                      //Create a row item for the directory list and define properties.
                      FileListItem item = new FileListItem();
                      item.setFilename(name.getName());
                      item.setDirectory(name.isDirectory());
                      item.setLocation(name.getAbsolutePath());
                      item.setTime(name.lastModified());
                      //Add row to the List of directories/files
                      internalList.add(item);
                  }
              }
              //Sort the files and directories in alphabetical order.
              //See compareTo method in FileListItem class.
              Collections.sort(internalList);
          }
          catch (NullPointerException e)
          {   //Just dont worry, it rarely occurs.
              e.printStackTrace();
              internalList=new ArrayList<>();
          }
          return internalList;
      }