Bug 88635 [EditorMgmt] add performance tracking for content type resolution
This operation could be expensive and should be tracked.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDE.java
resources = new ArrayList(originalSelection.size());
                }
                resources.add(resource);
            }
        }
        if (resources == null) {
            return Collections.EMPTY_LIST;
        }
        return resources;
        
    }
	/**
	 * Return the content type for the given file.
	 * 
	 * @param file the file to test
	 * @return the content type, or null if it cannot be determined.
	 * @since 3.1
	 */
	public static IContentType getContentType(IFile file) {
		try {
			IContentDescription contentDescription = file.getContentDescription();
			if (contentDescription == null)
				return null;
			return contentDescription.getContentType();
		} catch (CoreException e) {
			return null;		
		}
	}
}