void (@NotNull PyImportElement node) { final String asName = node.getAsName(); final QualifiedName importedQName = node.getImportedQName(); if (importedQName == null) return; final String name = importedQName.getLastComponent(); if (asName == null || name == null) return; if (UPPERCASE_REGEX.matcher(name).matches()) { final String errorCode = "N811"; if (!UPPERCASE_REGEX.matcher(asName).matches() && !ignoredErrors.contains(errorCode)) { registerAndAddRenameAndIgnoreErrorQuickFixes(node.getAsNameElement(), errorCode); } } else if (LOWERCASE_REGEX.matcher(name).matches()) { final String errorCode = "N812"; if (!LOWERCASE_REGEX.matcher(asName).matches() && !ignoredErrors.contains(errorCode)) { registerAndAddRenameAndIgnoreErrorQuickFixes(node.getAsNameElement(), errorCode); } } else if (LOWERCASE_REGEX.matcher(asName).matches()) { final String errorCode = "N813"; if (!ignoredErrors.contains(errorCode)) { registerAndAddRenameAndIgnoreErrorQuickFixes(node.getAsNameElement(), errorCode); } } else if (UPPERCASE_REGEX.matcher(asName).matches()) { final String errorCode = "N814"; if (!ignoredErrors.contains(errorCode)) { registerAndAddRenameAndIgnoreErrorQuickFixes(node.getAsNameElement(), errorCode); } } }