public static boolean openEditors(@NotNull Project project,@NotNull Collection<File> files,boolean select){
  if (files.size() > 0) {
    boolean result=true;
    VirtualFile last=null;
    for (    File file : files) {
      if (file.exists()) {
        VirtualFile vFile=VfsUtil.findFileByIoFile(file,true);
        if (vFile != null) {
          result&=openEditor(project,vFile);
          last=vFile;
        }
 else {
          result=false;
        }
      }
    }
    if (select && last != null) {
      selectEditor(project,last);
    }
    return result;
  }
  return false;
}

public static boolean openEditors ( @ NotNull Project project , @ NotNull Collection < File > files , boolean select ) { if ( files . size ( ) > 0 ) { boolean result = true ; VirtualFile last = null ; for ( File file : files ) { if ( file . exists ( ) ) { VirtualFile vFile = VfsUtil . findFileByIoFile ( file , true ) ; if ( vFile != null ) { result &= openEditor ( project , vFile ) ; last = vFile ; } else { result = false ; } } } if ( select && last != null ) { selectEditor ( project , last ) ; } return result ; } return false ; }
opens the specified files in the editor
