From 93b834631b2015fc83deb511aa3bb99cb9b5b9ba Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Thu, 21 Jun 2018 17:34:23 +0700 Subject: [PATCH] MagicConstantInspection: getElementToMakeWritable --- .../magicConstant/MagicConstantInspection.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/java/java-impl/src/com/intellij/codeInspection/magicConstant/MagicConstantInspection.java b/java/java-impl/src/com/intellij/codeInspection/magicConstant/MagicConstantInspection.java index 57407af9e25c..fdfb45957459 100644 --- a/java/java-impl/src/com/intellij/codeInspection/magicConstant/MagicConstantInspection.java +++ b/java/java-impl/src/com/intellij/codeInspection/magicConstant/MagicConstantInspection.java @@ -818,6 +818,12 @@ public class MagicConstantInspection extends AbstractBaseJavaLocalInspectionTool } } + @Nullable + @Override + public PsiElement getElementToMakeWritable(@NotNull PsiFile currentFile) { + return currentFile; + } + private static void replace(@NotNull Project project, @NotNull PsiElement startElement, @NotNull List values) {