@Override
public void visitModule(@NotNull ErlangModule o) {
String ext = FileUtilRt.getExtension(o.getContainingFile().getName());
String withoutExtension = FileUtil.getNameWithoutExtension(o.getContainingFile().getName());
String moduleName = StringUtil.replace(o.getName(), "'", "");
ErlangCompositeElement atom = o.getQAtom();
if (atom != null && !StringUtil.equals(moduleName, withoutExtension)) {
holder.registerProblem(atom, "Module with name '" + moduleName + "' should be declared in a file named '" +
moduleName + "." + ext + "'.",
new ErlangRenameModuleFix(withoutExtension),
new ErlangRenameFileFix()