diff --git a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/actions/SuppressAllForClassFix.java b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/actions/SuppressAllForClassFix.java
index 3f43a51568b0..c06a82b1062f 100644
--- a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/actions/SuppressAllForClassFix.java
+++ b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/actions/SuppressAllForClassFix.java
@@ -66,7 +66,7 @@ public class SuppressAllForClassFix extends SuppressFix {
}
@Override
- public void invoke(final Project project, final Editor editor, final PsiElement element) throws IncorrectOperationException {
+ public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
final PsiDocCommentOwner container = getContainer(element);
LOG.assertTrue(container != null);
if (!CodeInsightUtilBase.preparePsiElementForWrite(container)) return;
diff --git a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/actions/SuppressFix.java b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/actions/SuppressFix.java
index 2c5cd77301aa..a8464dc6c9c8 100644
--- a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/actions/SuppressFix.java
+++ b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/actions/SuppressFix.java
@@ -105,7 +105,7 @@ public class SuppressFix extends SuppressIntentionAction {
}
@Override
- public void invoke(final Project project, final Editor editor, final PsiElement element) throws IncorrectOperationException {
+ public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
PsiDocCommentOwner container = getContainer(element);
assert container != null;
if (!CodeInsightUtilBase.preparePsiElementForWrite(container)) return;
diff --git a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/actions/SuppressParameterFix.java b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/actions/SuppressParameterFix.java
index dbd6e2f38cc0..49682f21e312 100644
--- a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/actions/SuppressParameterFix.java
+++ b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/actions/SuppressParameterFix.java
@@ -66,7 +66,7 @@ public class SuppressParameterFix extends SuppressIntentionAction {
}
@Override
- public void invoke(final Project project, final Editor editor, final PsiElement element) throws IncorrectOperationException {
+ public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
PsiParameter container = PsiTreeUtil.getParentOfType(element, PsiParameter.class, false);
assert container != null;
if (!CodeInsightUtilBase.preparePsiElementForWrite(container)) return;
diff --git a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/DelegateWithDefaultParamValueIntentionAction.java b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/DelegateWithDefaultParamValueIntentionAction.java
index dc09b28a11e4..4348764edd35 100644
--- a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/DelegateWithDefaultParamValueIntentionAction.java
+++ b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/DelegateWithDefaultParamValueIntentionAction.java
@@ -83,7 +83,7 @@ public class DelegateWithDefaultParamValueIntentionAction extends PsiElementBase
}
@Override
- public void invoke(Project project, Editor editor, PsiElement element) throws IncorrectOperationException {
+ public void invoke(@NotNull Project project, Editor editor, @NotNull PsiElement element) throws IncorrectOperationException {
final PsiParameter parameter = PsiTreeUtil.getParentOfType(element, PsiParameter.class);
final PsiMethod method = (PsiMethod)parameter.getDeclarationScope();
final PsiMethod prototype = (PsiMethod)method.getContainingClass().addBefore(generateMethodPrototype(method, parameter), method);
diff --git a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/QualifyThisArgumentFix.java b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/QualifyThisArgumentFix.java
index ff23c5fcaa12..a5cfce5dd068 100644
--- a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/QualifyThisArgumentFix.java
+++ b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/QualifyThisArgumentFix.java
@@ -66,7 +66,7 @@ public class QualifyThisArgumentFix extends PsiElementBaseIntentionAction {
}
@Override
- public void invoke(Project project, Editor editor, PsiElement element) throws IncorrectOperationException {
+ public void invoke(@NotNull Project project, Editor editor, @NotNull PsiElement element) throws IncorrectOperationException {
myExpression.replace(RefactoringUtil.createThisExpression(PsiManager.getInstance(project), myPsiClass));
}
diff --git a/java/java-impl/src/com/intellij/codeInsight/intention/impl/InsertLiteralUnderscoresAction.java b/java/java-impl/src/com/intellij/codeInsight/intention/impl/InsertLiteralUnderscoresAction.java
index 281a18d78abc..0681808cea69 100644
--- a/java/java-impl/src/com/intellij/codeInsight/intention/impl/InsertLiteralUnderscoresAction.java
+++ b/java/java-impl/src/com/intellij/codeInsight/intention/impl/InsertLiteralUnderscoresAction.java
@@ -46,7 +46,7 @@ public class InsertLiteralUnderscoresAction extends PsiElementBaseIntentionActio
}
@Override
- public void invoke(final Project project, final Editor editor, final PsiElement element) throws IncorrectOperationException {
+ public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
final PsiLiteralExpression literalExpression = PsiTreeUtil.getParentOfType(element, PsiLiteralExpression.class, false);
if (literalExpression == null) return;
diff --git a/java/java-impl/src/com/intellij/codeInsight/intention/impl/RemoveLiteralUnderscoresAction.java b/java/java-impl/src/com/intellij/codeInsight/intention/impl/RemoveLiteralUnderscoresAction.java
index 4207625a54ca..320104e934de 100644
--- a/java/java-impl/src/com/intellij/codeInsight/intention/impl/RemoveLiteralUnderscoresAction.java
+++ b/java/java-impl/src/com/intellij/codeInsight/intention/impl/RemoveLiteralUnderscoresAction.java
@@ -40,7 +40,7 @@ public class RemoveLiteralUnderscoresAction extends PsiElementBaseIntentionActio
}
@Override
- public void invoke(final Project project, final Editor editor, final PsiElement element) throws IncorrectOperationException {
+ public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
final PsiLiteralExpression literalExpression = PsiTreeUtil.getParentOfType(element, PsiLiteralExpression.class, false);
if (literalExpression == null) return;
diff --git a/platform/core-api/src/com/intellij/psi/PsiElement.java b/platform/core-api/src/com/intellij/psi/PsiElement.java
index 99bc7789c90c..fa58ea3d3797 100644
--- a/platform/core-api/src/com/intellij/psi/PsiElement.java
+++ b/platform/core-api/src/com/intellij/psi/PsiElement.java
@@ -46,7 +46,8 @@ public interface PsiElement extends UserDataHolder, Iconable {
* Returns the project to which the PSI element belongs.
*
* @return the project instance.
- * @throws PsiInvalidElementAccessException if this element is invalid
+ * @throws PsiInvalidElementAccessException
+ * if this element is invalid
*/
@NotNull
Project getProject() throws PsiInvalidElementAccessException;
@@ -56,7 +57,8 @@ public interface PsiElement extends UserDataHolder, Iconable {
*
* @return the language instance.
*/
- @NotNull Language getLanguage();
+ @NotNull
+ Language getLanguage();
/**
* Returns the PSI manager for the project to which the PSI element belongs.
@@ -71,7 +73,8 @@ public interface PsiElement extends UserDataHolder, Iconable {
*
* @return the array of child elements.
*/
- @NotNull PsiElement[] getChildren();
+ @NotNull
+ PsiElement[] getChildren();
/**
* Returns the parent of the PSI element.
@@ -85,34 +88,40 @@ public interface PsiElement extends UserDataHolder, Iconable {
*
* @return the first child, or null if the element has no children.
*/
- @Nullable PsiElement getFirstChild();
+ @Nullable
+ PsiElement getFirstChild();
/**
* Returns the last child of the PSI element.
*
* @return the last child, or null if the element has no children.
*/
- @Nullable PsiElement getLastChild();
+ @Nullable
+ PsiElement getLastChild();
/**
* Returns the next sibling of the PSI element.
*
* @return the next sibling, or null if the node is the last in the list of siblings.
*/
- @Nullable PsiElement getNextSibling();
+ @Nullable
+ PsiElement getNextSibling();
/**
* Returns the previous sibling of the PSI element.
*
* @return the previous sibling, or null if the node is the first in the list of siblings.
*/
- @Nullable PsiElement getPrevSibling();
+ @Nullable
+ PsiElement getPrevSibling();
/**
* Returns the file containing the PSI element.
- * @throws PsiInvalidElementAccessException if this element is invalid
+ *
* @return the file instance, or null if the PSI element is not contained in a file (for example,
- * the element represents a package or directory).
+ * the element represents a package or directory).
+ * @throws PsiInvalidElementAccessException
+ * if this element is invalid
*/
PsiFile getContainingFile() throws PsiInvalidElementAccessException;
@@ -178,7 +187,8 @@ public interface PsiElement extends UserDataHolder, Iconable {
*
* @return the element text as a character array.
*/
- @NotNull char[] textToCharArray();
+ @NotNull
+ char[] textToCharArray();
/**
* Returns the PSI element which should be used as a navigation target
@@ -246,7 +256,7 @@ public interface PsiElement extends UserDataHolder, Iconable {
/**
* Creates a copy of the file containing the PSI element and returns the corresponding
* element in the created copy. Resolve operations performed on elements in the copy
- * of the file will resolve to elements in the copy, not in the original file.
+ * of the file will resolve to elements in the copy, not in the original file.
*
* @return the element in the file copy corresponding to this element.
*/
@@ -304,9 +314,9 @@ public interface PsiElement extends UserDataHolder, Iconable {
/**
* Adds a range of elements as children to this PSI element, before the specified anchor element.
*
- * @param first the first child element to add.
- * @param last the last child element to add (must have the same parent as first)
- * @param anchor the anchor before which the child element is inserted (must be a child of this PSI element)
+ * @param first the first child element to add.
+ * @param last the last child element to add (must have the same parent as first)
+ * @param anchor the anchor before which the child element is inserted (must be a child of this PSI element)
* @return the first child element which was actually added (either first or its copy).
* @throws IncorrectOperationException if the modification is not supported or not possible for some reason.
*/
@@ -315,9 +325,9 @@ public interface PsiElement extends UserDataHolder, Iconable {
/**
* Adds a range of elements as children to this PSI element, after the specified anchor element.
*
- * @param first the first child element to add.
- * @param last the last child element to add (must have the same parent as first)
- * @param anchor the anchor after which the child element is inserted (must be a child of this PSI element)
+ * @param first the first child element to add.
+ * @param last the last child element to add (must have the same parent as first)
+ * @param anchor the anchor after which the child element is inserted (must be a child of this PSI element)
* @return the first child element which was actually added (either first or its copy).
* @throws IncorrectOperationException if the modification is not supported or not possible for some reason.
*/
@@ -327,7 +337,7 @@ public interface PsiElement extends UserDataHolder, Iconable {
* Deletes this PSI element from the tree.
*
* @throws IncorrectOperationException if the modification is not supported
- * or not possible for some reason (for example, the file containing the element is read-only).
+ * or not possible for some reason (for example, the file containing the element is read-only).
*/
void delete() throws IncorrectOperationException;
@@ -382,7 +392,7 @@ public interface PsiElement extends UserDataHolder, Iconable {
* associated reference.
*
* @return the reference instance, or null if the PSI element does not have any
- * associated references.
+ * associated references.
*/
@Nullable
PsiReference getReference();
@@ -394,15 +404,16 @@ public interface PsiElement extends UserDataHolder, Iconable {
* contains only one text fragment which acts as a reference but the reference has
* multiple possible targets, {@link PsiPolyVariantReference} should be used instead
* of returning multiple references.
- *
+ *
getParent(),
* but the context can be overridden for some elements like code fragments (see
- * {@link PsiElementFactory#createCodeBlockCodeFragment(String, PsiElement, boolean)}).
+ * {@link PsiElementFactory#createCodeBlockCodeFragment(String, PsiElement, boolean)}).
*
* @return the resolve context element.
*/
- @Nullable PsiElement getContext();
+ @Nullable
+ PsiElement getContext();
/**
* Checks if an actual source or class file corresponds to the element. Non-physical elements include,
@@ -465,7 +478,8 @@ public interface PsiElement extends UserDataHolder, Iconable {
*
* @return the resolve scope instance.
*/
- @NotNull GlobalSearchScope getResolveScope();
+ @NotNull
+ GlobalSearchScope getResolveScope();
/**
* Returns the scope in which references to this element are searched.
@@ -473,7 +487,8 @@ public interface PsiElement extends UserDataHolder, Iconable {
* @return the search scope instance.
* @see {@link com.intellij.psi.search.PsiSearchHelper#getUseScope(PsiElement)}
*/
- @NotNull SearchScope getUseScope();
+ @NotNull
+ SearchScope getUseScope();
/**
* Returns the AST node corresponding to the element.
@@ -485,7 +500,8 @@ public interface PsiElement extends UserDataHolder, Iconable {
/**
* toString() should never be presented to the user.
*/
- @NonNls String toString();
+ @NonNls
+ String toString();
boolean isEquivalentTo(PsiElement another);
}
diff --git a/platform/lang-api/src/com/intellij/codeInsight/intention/IntentionAction.java b/platform/lang-api/src/com/intellij/codeInsight/intention/IntentionAction.java
index 15b366e17909..946e31137556 100644
--- a/platform/lang-api/src/com/intellij/codeInsight/intention/IntentionAction.java
+++ b/platform/lang-api/src/com/intellij/codeInsight/intention/IntentionAction.java
@@ -51,7 +51,8 @@ public interface IntentionAction {
* @return the intention family ID.
* @see IntentionManager#registerIntentionAndMetaData(com.intellij.codeInsight.intention.IntentionAction, java.lang.String...)
*/
- @NotNull String getFamilyName();
+ @NotNull
+ String getFamilyName();
/**
* Checks whether this intention is available at a caret offset in file.
diff --git a/platform/lang-api/src/com/intellij/codeInsight/intention/PsiElementBaseIntentionAction.java b/platform/lang-api/src/com/intellij/codeInsight/intention/PsiElementBaseIntentionAction.java
index 453b022dc298..6967f36ecb86 100644
--- a/platform/lang-api/src/com/intellij/codeInsight/intention/PsiElementBaseIntentionAction.java
+++ b/platform/lang-api/src/com/intellij/codeInsight/intention/PsiElementBaseIntentionAction.java
@@ -43,16 +43,17 @@ public abstract class PsiElementBaseIntentionAction extends BaseIntentionAction
throw new IncorrectOperationException();
}
+ @Override
public boolean isAvailable(@NotNull Project project, Editor editor, PsiFile file) {
final PsiElement element = getElement(editor, file);
return element != null && isAvailable(project, editor, element);
}
@Nullable
- protected static PsiElement getElement(Editor editor, PsiFile file) {
+ protected static PsiElement getElement(Editor editor, @NotNull PsiFile file) {
if (!file.getManager().isInProject(file)) return null;
- final CaretModel caretModel = editor.getCaretModel();
- final int position = caretModel.getOffset();
+ CaretModel caretModel = editor.getCaretModel();
+ int position = caretModel.getOffset();
return file.findElementAt(position);
}
diff --git a/platform/lang-api/src/com/intellij/codeInsight/intention/impl/BaseIntentionAction.java b/platform/lang-api/src/com/intellij/codeInsight/intention/impl/BaseIntentionAction.java
index 31c89570a388..81d3d9a245dc 100644
--- a/platform/lang-api/src/com/intellij/codeInsight/intention/impl/BaseIntentionAction.java
+++ b/platform/lang-api/src/com/intellij/codeInsight/intention/impl/BaseIntentionAction.java
@@ -25,6 +25,7 @@ import org.jetbrains.annotations.NotNull;
public abstract class BaseIntentionAction implements IntentionAction {
private String myText = "";
+ @Override
@NotNull
public String getText() {
return myText;
@@ -34,6 +35,7 @@ public abstract class BaseIntentionAction implements IntentionAction {
myText = text;
}
+ @Override
public boolean startInWriteAction() {
return true;
}
diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInspection/SuppressForMemberFix.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInspection/SuppressForMemberFix.java
index c327b42e1131..f23d90d93da8 100644
--- a/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInspection/SuppressForMemberFix.java
+++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInspection/SuppressForMemberFix.java
@@ -94,7 +94,7 @@ public class SuppressForMemberFix extends SuppressIntentionAction {
return container != null && context != null && context.getManager().isInProject(context);
}
- public void invoke(final Project project, final Editor editor, final PsiElement element) throws IncorrectOperationException {
+ public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
GrDocCommentOwner container = getContainer(element);
assert container != null;
if (!CodeInsightUtilBase.preparePsiElementForWrite(container)) return;
diff --git a/plugins/java-i18n/src/com/intellij/codeInspection/i18n/SuppressByCommentOutAction.java b/plugins/java-i18n/src/com/intellij/codeInspection/i18n/SuppressByCommentOutAction.java
index 0c9ecaa47ce9..f674084163a0 100644
--- a/plugins/java-i18n/src/com/intellij/codeInspection/i18n/SuppressByCommentOutAction.java
+++ b/plugins/java-i18n/src/com/intellij/codeInspection/i18n/SuppressByCommentOutAction.java
@@ -41,7 +41,7 @@ class SuppressByCommentOutAction extends SuppressIntentionAction {
}
@Override
- public void invoke(Project project, Editor editor, PsiElement element) throws IncorrectOperationException {
+ public void invoke(@NotNull Project project, Editor editor, @NotNull PsiElement element) throws IncorrectOperationException {
if (!CodeInsightUtilBase.preparePsiElementForWrite(element)) return;
element = findJavaCodeUpThere(element);
PsiFile file = element.getContainingFile();
diff --git a/plugins/properties/src/com/intellij/lang/properties/PropertySuppressableInspectionBase.java b/plugins/properties/src/com/intellij/lang/properties/PropertySuppressableInspectionBase.java
index 6bbdcace6701..499e1fc8a78f 100644
--- a/plugins/properties/src/com/intellij/lang/properties/PropertySuppressableInspectionBase.java
+++ b/plugins/properties/src/com/intellij/lang/properties/PropertySuppressableInspectionBase.java
@@ -110,7 +110,7 @@ public abstract class PropertySuppressableInspectionBase extends LocalInspection
return property != null && property.isValid();
}
- public void invoke(final Project project, final Editor editor, final PsiElement element) throws IncorrectOperationException {
+ public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
final PsiFile file = element.getContainingFile();
if (!CodeInsightUtilBase.prepareFileForWrite(file)) return;
@@ -149,7 +149,7 @@ public abstract class PropertySuppressableInspectionBase extends LocalInspection
return element.isValid() && element.getContainingFile() instanceof PropertiesFile;
}
- public void invoke(final Project project, final Editor editor, final PsiElement element) throws IncorrectOperationException {
+ public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
final PsiFile file = element.getContainingFile();
if (!CodeInsightUtilBase.prepareFileForWrite(file)) return;
diff --git a/xml/impl/src/com/intellij/codeInsight/daemon/impl/analysis/AddSchemaPrefixIntention.java b/xml/impl/src/com/intellij/codeInsight/daemon/impl/analysis/AddSchemaPrefixIntention.java
index 21c95935dd7a..e7d65657d0b4 100644
--- a/xml/impl/src/com/intellij/codeInsight/daemon/impl/analysis/AddSchemaPrefixIntention.java
+++ b/xml/impl/src/com/intellij/codeInsight/daemon/impl/analysis/AddSchemaPrefixIntention.java
@@ -57,7 +57,7 @@ public class AddSchemaPrefixIntention extends PsiElementBaseIntentionAction {
}
@Override
- public void invoke(Project project, Editor editor, PsiElement element) throws IncorrectOperationException {
+ public void invoke(@NotNull Project project, Editor editor, @NotNull PsiElement element) throws IncorrectOperationException {
final XmlAttribute xmlns = getXmlnsDeclaration(element);
if (xmlns == null) return;
final String namespace = xmlns.getValue();
diff --git a/xml/impl/src/com/intellij/codeInsight/daemon/impl/analysis/ConvertSchemaPrefixToDefaultIntention.java b/xml/impl/src/com/intellij/codeInsight/daemon/impl/analysis/ConvertSchemaPrefixToDefaultIntention.java
index d524eb2c95bd..34c4809aa811 100644
--- a/xml/impl/src/com/intellij/codeInsight/daemon/impl/analysis/ConvertSchemaPrefixToDefaultIntention.java
+++ b/xml/impl/src/com/intellij/codeInsight/daemon/impl/analysis/ConvertSchemaPrefixToDefaultIntention.java
@@ -45,7 +45,7 @@ public class ConvertSchemaPrefixToDefaultIntention extends PsiElementBaseIntenti
}
@Override
- public void invoke(Project project, Editor editor, PsiElement element) throws IncorrectOperationException {
+ public void invoke(@NotNull Project project, Editor editor, @NotNull PsiElement element) throws IncorrectOperationException {
final XmlAttribute xmlns = getXmlnsDeclaration(element);
if (xmlns == null) return;
SchemaPrefixReference prefixRef = null;
diff --git a/xml/openapi/src/com/intellij/codeInspection/XmlSuppressableInspectionTool.java b/xml/openapi/src/com/intellij/codeInspection/XmlSuppressableInspectionTool.java
index 84623dd6d72d..26191bac3220 100644
--- a/xml/openapi/src/com/intellij/codeInspection/XmlSuppressableInspectionTool.java
+++ b/xml/openapi/src/com/intellij/codeInspection/XmlSuppressableInspectionTool.java
@@ -66,7 +66,7 @@ public abstract class XmlSuppressableInspectionTool extends LocalInspectionTool
return PsiTreeUtil.getParentOfType(element, XmlTag.class) != null;
}
- public void invoke(final Project project, final Editor editor, final PsiElement element) throws IncorrectOperationException {
+ public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
XmlSuppressionProvider.getProvider(element.getContainingFile()).suppressForTag(element, id);
}
}
@@ -88,7 +88,7 @@ public abstract class XmlSuppressableInspectionTool extends LocalInspectionTool
return getText();
}
- public void invoke(final Project project, final Editor editor, final PsiElement element) throws IncorrectOperationException {
+ public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
XmlSuppressionProvider.getProvider(element.getContainingFile()).suppressForFile(element, myInspectionId);
}
diff --git a/xml/relaxng/src/org/intellij/plugins/relaxNG/inspections/BaseInspection.java b/xml/relaxng/src/org/intellij/plugins/relaxNG/inspections/BaseInspection.java
index e01543514e80..0f8288f379aa 100644
--- a/xml/relaxng/src/org/intellij/plugins/relaxNG/inspections/BaseInspection.java
+++ b/xml/relaxng/src/org/intellij/plugins/relaxNG/inspections/BaseInspection.java
@@ -205,7 +205,7 @@ public abstract class BaseInspection extends XmlSuppressableInspectionTool {
return getDisplayName();
}
- public void invoke(Project project, Editor editor, PsiElement element) throws IncorrectOperationException {
+ public void invoke(@NotNull Project project, Editor editor, @NotNull PsiElement element) throws IncorrectOperationException {
suppress(element.getContainingFile(), getTarget(element));
}