void (IndentOptionsAdjuster adjuster) { VirtualFile virtualFile = getFile(); if (virtualFile == null) return; final IndentOptions currentDefault = getDefaultIndentOptions(myProject, virtualFile, myDocument); myOptionsToAdjust.copyFrom(currentDefault); adjuster.adjust(myOptionsToAdjust); myOptionsToAdjust.setTimeStamp(myDocument.getModificationStamp()); myOptionsToAdjust.setOriginalIndentOptionsHash(currentDefault.hashCode()); if (!currentDefault.equals(myOptionsToAdjust)) { myOptionsToAdjust.setDetected(true); myOptionsToAdjust.setOverrideLanguageOptions(true); CodeStyleSettingsManager.getInstance(myProject).fireCodeStyleSettingsChanged(virtualFile); } }