int (@NotNull String replacement) { if (replacement.contains("..") || replacement.contains("$" + PathMacroUtil.USER_HOME_NAME + "$") || replacement.contains("$" + PathMacroUtil.APPLICATION_HOME_DIR + "$") || replacement.contains("$" + PathMacrosImpl.MAVEN_REPOSITORY + "$")) { return 1; } if (replacement.contains(PathMacroUtil.DEPRECATED_MODULE_DIR) || replacement.contains("$" + PathMacroUtil.PROJECT_DIR_MACRO_NAME + "$")) { return 3; } return 2; }