void (final @NotNull PyTargetExpression node) { String targetName = node.getName(); if (PyNames.NONE.equals(targetName)) { final VirtualFile vfile = node.getContainingFile().getVirtualFile(); if (vfile != null && !vfile.getUrl().contains("/" + PythonSdkUtil.SKELETON_DIR_NAME + "/")) { //noinspection DialogTitleCapitalization getHolder().newAnnotation(HighlightSeverity.ERROR, (myOp == Operation.Delete) ? message("ANN.deleting.none") : message("ANN.assign.to.none")).range(node) .create(); } } if (PyNames.DEBUG.equals(targetName)) { if (LanguageLevel.forElement(node).isPy3K()) { getHolder().newAnnotation(HighlightSeverity.ERROR, message("ANN.assignment.to.keyword")).range(node).create(); } else { getHolder().newAnnotation(HighlightSeverity.ERROR, message("ANN.cannot.assign.to.debug")).range(node).create(); } } }