}
private static void associateFileTypeAndNavigate(Project project, VirtualFile virtualFile) {
String extension = virtualFile.getExtension();
FileTypeManagerEx fileTypeManagerEx = FileTypeManagerEx.getInstanceEx();
if (extension != null && fileTypeManagerEx.getFileTypeByExtension(extension) == FileTypes.UNKNOWN) {
fileTypeManagerEx.associateExtension(StdFileTypes.PLAIN_TEXT, "flex");
}
FileEditorManager.getInstance(project).openFile(virtualFile, false, true);
//new OpenFileDescriptor(project, virtualFile).navigate(false);
}