VirtualFile modified = file;
ModificationType modificationType = contextInfo.getModificationType();
if (modificationType != null)
{
ModificationAction action = ModificationActions.getAction(modificationType);
if (action != null)
{
boolean trace = log.isTraceEnabled();
if (trace)
log.trace("Modifying file: " + file + ", modification type: " + modificationType);
modified = action.modify(file);
if (trace)
{
if (modified != file)
log.trace("Modified file: " + modified);