Set<Integer> (@NotNull ControlFlow flow, PsiElement @NotNull [] defs) { Set<Integer> set = new HashSet<>(); for (PsiElement def : defs) { int start = flow.getStartOffset(def); if (start == -1) return null; int end = flow.getEndOffset(def); if (end == -1) return null; for (int i = start; i < end; i++) { set.add(i); } } return set; }