private void checkRotation() { if (rotationThreshold != null && fileSystem.getFileSize(file) > rotationThreshold && !doingRotation) { doRotation(); } }