Couple<List<PsiComment>> (@NotNull PyImportStatementBase statement) { final List<PsiComment> boundComments = PyPsiUtils.getPrecedingComments(statement, true); final PsiComment firstComment = ContainerUtil.getFirstItem(boundComments); if (firstComment != null && isFirstInFile(firstComment)) { return Couple.of(Collections.emptyList(), boundComments); } final List<PsiComment> remainingComments = PyPsiUtils.getPrecedingComments(ObjectUtils.notNull(firstComment, statement), false); return Couple.of(boundComments, remainingComments); }