diff --git a/plugins/InspectionGadgets/src/com/siyeh/ig/fixes/IntroduceConstantFix.java b/plugins/InspectionGadgets/src/com/siyeh/ig/fixes/IntroduceConstantFix.java index 56968ac125ac..aea00242a1c5 100644 --- a/plugins/InspectionGadgets/src/com/siyeh/ig/fixes/IntroduceConstantFix.java +++ b/plugins/InspectionGadgets/src/com/siyeh/ig/fixes/IntroduceConstantFix.java @@ -1,5 +1,5 @@ /* - * Copyright 2003-2016 Dave Griffith, Bas Leijdekkers + * Copyright 2003-2017 Dave Griffith, Bas Leijdekkers * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,6 +15,7 @@ */ package com.siyeh.ig.fixes; +import com.intellij.psi.PsiElement; import com.intellij.refactoring.JavaRefactoringActionHandlerFactory; import com.intellij.refactoring.RefactoringActionHandler; import com.siyeh.InspectionGadgetsBundle; @@ -33,4 +34,9 @@ public class IntroduceConstantFix extends RefactoringInspectionGadgetsFix { public RefactoringActionHandler getHandler() { return JavaRefactoringActionHandlerFactory.getInstance().createIntroduceConstantHandler(); } + + @Override + public PsiElement getElementToRefactor(PsiElement element) { + return element; + } } \ No newline at end of file