@VisibleForTesting public static boolean isTextFile(@NonNull File file){
  String name=file.getName();
  return name.endsWith(DOT_JAVA) || name.endsWith(DOT_XML) || name.endsWith(DOT_AIDL)|| name.endsWith(DOT_FS)|| name.endsWith(DOT_RS)|| name.endsWith(DOT_RSH)|| name.endsWith(DOT_RSH)|| name.endsWith(DOT_TXT)|| name.endsWith(DOT_GRADLE)|| name.endsWith(DOT_PROPERTIES)|| name.endsWith(".cfg")|| name.endsWith(".pro")|| name.endsWith(".h")|| name.endsWith(".c")|| name.endsWith(".cpp");
}

@ VisibleForTesting public static boolean isTextFile ( @ NonNull File file ) { String name = file . getName ( ) ; return name . endsWith ( DOT_JAVA ) || name . endsWith ( DOT_XML ) || name . endsWith ( DOT_AIDL ) || name . endsWith ( DOT_FS ) || name . endsWith ( DOT_RS ) || name . endsWith ( DOT_RSH ) || name . endsWith ( DOT_RSH ) || name . endsWith ( DOT_TXT ) || name . endsWith ( DOT_GRADLE ) || name . endsWith ( DOT_PROPERTIES ) || name . endsWith ( ".cfg" ) || name . endsWith ( ".pro" ) || name . endsWith ( ".h" ) || name . endsWith ( ".c" ) || name . endsWith ( ".cpp" ) ; }
returns true if this file is believed to be a source file ( so it should be encoded as a utf - 8 file in the imported project
