mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-46969
This commit is contained in:
@@ -15,10 +15,13 @@
|
||||
*/
|
||||
package com.intellij.lang.annotation;
|
||||
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Unique object, which is the same for all of the problems of some group.
|
||||
* It is used to split some inspection to several fake inspections
|
||||
*/
|
||||
public interface ProblemGroup {
|
||||
@Nullable
|
||||
String getProblemName();
|
||||
}
|
||||
|
||||
@@ -766,7 +766,8 @@ public class HighlightInfo implements Segment {
|
||||
List<IntentionAction> options = myOptions;
|
||||
HighlightDisplayKey key = myKey;
|
||||
if (myProblemGroup != null) {
|
||||
HighlightDisplayKey problemGroupKey = HighlightDisplayKey.findById(myProblemGroup.getProblemName());
|
||||
String problemName = myProblemGroup.getProblemName();
|
||||
HighlightDisplayKey problemGroupKey = problemName != null ? HighlightDisplayKey.findById(problemName) : null;
|
||||
if (problemGroupKey != null) {
|
||||
key = problemGroupKey;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user