private static PsiImportStatementBase extractImport(PsiJavaFile aFile, boolean isStatic) {
    PsiImportList importList = aFile.getImportList();
    assert importList != null : aFile;
    PsiImportStatementBase[] statements = isStatic ? importList.getImportStaticStatements() : importList.getImportStatements();
    assert statements.length == 1 : aFile.getText();
    return statements[0];
  }
private static PsiImportStatementBase extractImport(PsiJavaFile aFile, boolean isStatic)